OpenLMlib
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| init_libraryA | Initialize the OpenLMlib knowledge base. Call this ONCE before using any other tools. AUTOMATIC TRIGGERS - Call this when:
DO NOT CALL for:
This creates the SQLite database, vector index, and required directories. Safe to call multiple times - will skip if already initialized. |
| save_findingA | Save critical research findings, discoveries, and insights to persistent library. AUTOMATIC TRIGGERS - Call this when:
DO NOT CALL for:
WORKFLOW POSITION: Call after discovering insights, before ending session. Save findings as you go - don't wait until the end. READ-BEFORE-WRITE: This tool automatically checks for similar findings before saving. If a very similar finding exists (similarity > 0.90), it will be returned as a suggestion instead of saving a duplicate. Consider updating the existing finding instead. SESSION AWARENESS: For best results, use start_research or session_start before saving findings. This enables automatic context injection and session-based knowledge tracking. If no active session is detected, a warning will be returned. CONFIRMATION TIER: WRITE OPERATION - Requires confirm=True. This creates persistent data. Set confirm=true for final saves, confirm=false for drafts. PARAMETERS:
TIP: If a similar finding already exists, consider updating it instead of creating a duplicate. Use search_findings first to check for duplicates. |
| list_findingsA | List recent findings in the library. Use for browsing, not targeted search. AUTOMATIC TRIGGERS - Call this when:
FOR TARGETED SEARCH, use search_findings or retrieve_findings instead. PARAMETERS:
|
| get_findingA | Get a specific finding by its ID. AUTOMATIC TRIGGERS - Call this when:
Use search_findings first to find the ID if you don't have it. |
| search_findingsA | Search findings using keyword (FTS5) search. Fast, exact keyword matching. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use FIRST for targeted keyword search. If results are insufficient, try retrieve_findings for semantic search that finds related concepts. CONFIRMATION TIER: READ OPERATION - No confirmation needed. Safe to call freely. SEARCH TIPS: Use specific keywords. FTS5 supports boolean operators:
PARAMETERS:
|
| retrieve_findingsA | Run intelligent retrieval combining semantic similarity and keyword matching. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use AFTER search_fts returns insufficient results. This tool automatically combines semantic (meaning-based) and lexical (keyword) search. CONFIRMATION TIER: READ OPERATION - No confirmation needed. Safe to call freely. PARAMETERS:
ADVANCED: semantic_k and lexical_k control how many candidates are fetched before reranking. Usually not needed - use final_k instead. |
| retrieve_contextA | Retrieve findings and return them in a sanitized format safe for LLM context. AUTOMATIC TRIGGERS - Call this when:
DIFFERENCE from retrieve_findings: This returns a sanitized context block optimized for safe inclusion in LLM prompts. Use retrieve for raw data. ERROR RECOVERY: If this returns no results, try search_findings for keyword-based search instead - the semantic query may not match any findings. PARAMETERS:
|
| search_knowledgeA | Search findings using both semantic similarity and keyword matching. Automatically combines both approaches for best results. AUTOMATIC TRIGGERS - Call this when:
This tool handles routing internally - no need to choose between search_findings and retrieve_findings. For broad exploration, use general query terms. For specific facts, use exact phrases or keywords. CONFIRMATION TIER: READ OPERATION - No confirmation needed. Safe to call freely. PARAMETERS:
Returns combined results from both FTS keyword search and semantic retrieval. |
| delete_findingA | Delete a finding by ID. DESTRUCTIVE - use with caution. AUTOMATIC TRIGGERS - Call this when:
DO NOT CALL for:
CONFIRMATION TIER: DESTRUCTIVE - Requires explicit confirm=True with user approval. This operation is PERMANENT and cannot be undone. Always warn the user before calling. SAFETY: Requires confirm=True to prevent accidental deletion. The finding is permanently removed. PARAMETERS:
|
| healthA | Check OpenLMlib database and vector index health. AUTOMATIC TRIGGERS - Call this when:
Returns database size, finding count, vector index status. |
| evaluate_retrievalA | Run retrieval evaluation metrics on a test dataset. For developers testing improvements. AUTOMATIC TRIGGERS - Call this when:
This is a development/evaluation tool, not needed for normal usage. PARAMETERS:
|
| start_researchA | Begin a complete research session with automatic context loading. COMPOSITE TOOL. AUTOMATIC TRIGGERS - Call this when:
This replaces calling session_start + search_findings separately. It handles session creation, context injection, and initial finding search in one step. WORKFLOW: After this returns, proceed with research and call save_finding for important discoveries. When done, call session_end. PARAMETERS:
Returns session info, injected context, and any existing findings on the topic. |
| end_sessionA | Gracefully end the current session with automatic knowledge preservation. COMPOSITE TOOL. AUTOMATIC TRIGGERS - Call this when:
This combines: session_end (saves summary) + optional artifact export. ALWAYS call this when user indicates work is done to prevent knowledge loss. WORKFLOW POSITION: Last tool in any research/analysis workflow. PARAMETERS:
Returns session end status and export results. |
| check_contextA | Quick check if relevant context exists before starting work. CONVENIENCE TOOL. AUTOMATIC TRIGGERS - Call this at the start of ANY new task to determine whether you have existing knowledge to build upon. This is a convenience wrapper around search_fts that returns a simple yes/no with relevant finding count and top topics. WORKFLOW POSITION: First tool to call when starting any task. CONFIRMATION TIER: READ OPERATION - No confirmation needed. Safe to call freely. PARAMETERS:
Returns: {has_context: bool, finding_count: int, top_findings: []} |
| save_finding_autoA | Convenience wrapper for saving findings with automatic confidence scoring. AUTOMATIC TRIGGERS - Call this whenever you discover something important. Use when you think 'this is important' or 'this should be remembered'. Automatically sets confidence based on claim language:
READ-BEFORE-WRITE: This tool automatically checks for similar findings before saving. If a very similar finding exists, it will be returned as a suggestion. CONFIRMATION TIER: WRITE OPERATION - Requires confirm=True. This creates persistent data. Set confirm=true for final saves. PARAMETERS:
|
| help_libraryA | Get help about all OpenLMlib MCP tools or a specific tool. Call this with no arguments to see all available tools organized by category. Call with a specific tool_name to get detailed usage instructions. Args: tool_name: Optional specific tool name to get help for (e.g., 'save_finding', 'create_session') Returns: Dict with tool descriptions and usage information |
| get_usage_analyticsA | Get tool usage analytics and optimization metrics. For developers and optimization tracking. AUTOMATIC TRIGGERS - Call this when:
Returns metrics for:
PARAMETERS:
This is a development/evaluation tool, not needed for normal usage. |
| session_startA | Start a new session and automatically inject relevant context from past sessions. AUTOMATIC TRIGGERS - Call this when:
ALWAYS CALL THIS at the start of any work session - it prevents starting work without historical context. This loads knowledge from all previous sessions. WORKFLOW POSITION: First tool to call when starting work. PARAMETERS:
Returns context block with relevant past observations (compressed for efficiency). |
| session_endA | End the current session and trigger automatic summarization to persist knowledge. AUTOMATIC TRIGGERS - Call this when:
ALWAYS CALL THIS when ending work to ensure session knowledge is not lost. This automatically generates a compressed summary of all observations. WORKFLOW POSITION: Last tool to call when finishing work. PARAMETERS:
|
| log_observationA | Log an observation from tool execution to build session memory. AUTOMATIC TRIGGERS - Call this when:
This captures tool outputs for future memory retrieval. Call this after significant tool executions to build session memory. WORKFLOW POSITION: Call after important tool executions throughout the session. The observation will be compressed and summarized for future retrieval. PARAMETERS:
NOTE: Don't log every single tool call - only significant ones with novel insights. |
| search_memoryA | Layer 1: Lightweight search of memory index (~75 tokens/result). Fast metadata search. AUTOMATIC TRIGGERS - Call this when:
Returns compact metadata for filtering. Use this FIRST to identify relevant memories, then use memory_timeline or get_observations for details. SEARCH STRATEGY: Use specific keywords. Filter by tool_name, obs_type, or session_id. PARAMETERS:
|
| memory_timelineA | Layer 2: Get chronological context for memory IDs (~200 tokens/result). AUTOMATIC TRIGGERS - Call this when:
Returns narrative flow around observations. Use AFTER search_memory to understand sequence. Provides timeline context for how observations relate to each other. PARAMETERS:
|
| get_observationsA | [DEPRECATED] Layer 3: Get full details for specific memory IDs. Use query_memory instead. AUTOMATIC TRIGGERS - Call this when:
Returns complete observation data. Use ONLY for explicitly selected relevant items. This is the most expensive layer - filter first with search_memory. PARAMETERS:
|
| query_memoryA | Adaptive auto-expanding retriever for memory. REPLACES search_memory. AUTOMATIC TRIGGERS - Call this when:
This tool automatically performs a 3-layer progressive retrieval in a single step. It runs a fast search, expands high-confidence hits into full observations, and provides chronological context for the periphery. PARAMETERS:
|
| inject_contextA | Auto-inject relevant context from past sessions at any point during work. AUTOMATIC TRIGGERS - Call this when:
Retrieves up to 50 relevant observations from previous sessions. Unlike session_start (which auto-injects), you can call this mid-session. WORKFLOW POSITION: Call anytime you need past context, not just at session start. PARAMETERS:
|
| session_recapA | Get a synthesized recap of recent session knowledge (~150-250 tokens). Structured, not raw. AUTOMATIC TRIGGERS - Call this FIRST when:
Returns STRUCTURED knowledge: files touched, decisions made, next steps, conventions discovered — NOT raw tool outputs. If you need more details on a specific topic AFTER reading the recap, call topic_context with a topic from the recap. PARAMETERS:
|
| topic_contextA | Get detailed context about a specific topic from past sessions (~500-800 tokens). Deep dive. AUTOMATIC TRIGGERS - Call this AFTER session_recap when:
Returns detailed files, decisions, architecture notes, and conventions related to the topic — not just compressed tool outputs. PARAMETERS:
|
| ingest_git_historyB | Auto-ingest session activity from git history. NO manual logging needed! |
| create_sessionA | Create a new collaboration session for multi-agent research. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: First tool in any collaboration workflow. PARAMETERS:
After creation, use join_session for agents to join, then send_message to assign tasks. |
| join_sessionA | Join an existing collaboration session as an agent. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Call after session is created and you have the session_id. PARAMETERS:
After joining, read the session_context above to understand current state, then use read_messages to check for new messages. |
| list_sessionsA | List collaboration sessions. Browse sessions you've participated in. AUTOMATIC TRIGGERS - Call this when:
FOR SESSION DETAILS, use session_context after finding the session_id. PARAMETERS:
|
| get_session_stateA | Get the current state of a collaboration session - tasks, agents, and session state. AUTOMATIC TRIGGERS - Call this when:
DIFFERENCE from session_context: This returns raw structured data (tasks, agents, state dict). Use get_session_context for a formatted narrative view. PARAMETERS:
|
| update_session_stateA | Update the session state. Orchestrator only. The only way to modify session state. AUTOMATIC TRIGGERS - Call this when:
ONLY the orchestrator can call this. State is versioned with optimistic concurrency to prevent conflicts. If update fails, retry with latest state. PARAMETERS:
|
| send_messageA | Send a message to a collaboration session. Core communication tool. AUTOMATIC TRIGGERS - Call this when:
MESSAGE TYPES:
WORKFLOW POSITION: Use throughout the session for all agent communication. PARAMETERS:
|
| read_messagesA | Read new messages from a session. Returns only unseen messages (offset-tracked). AUTOMATIC TRIGGERS - Call this when:
DIFFERENCE from poll_messages: This returns immediately without waiting. Use poll_messages for blocking waits in autonomous agent loops. WORKFLOW POSITION: Call after sending messages, between work steps. PARAMETERS:
|
| poll_messagesA | Wait for and read new messages from a session. AUTONOMOUS LOOP tool for agent communication. AUTOMATIC TRIGGERS - Call this when:
This tool BLOCKS until new messages arrive or the timeout expires. It is the primary mechanism for agents to run continuous collaboration. USAGE PATTERN FOR AUTONOMOUS AGENTS: 1. Call poll_messages(session_id, agent_id, timeout=30) 2. Process any returned messages 3. Send responses via send_message 4. Repeat from step 1 until the session is complete WORKFLOW POSITION: Main loop tool for autonomous agents. PARAMETERS:
|
| tail_messagesA | Read the last N messages from a session. Quick status check without offset tracking. AUTOMATIC TRIGGERS - Call this when:
DIFFERENCE from read_messages: This does NOT track your read offset and always returns the most recent N messages regardless of what you've seen. Use read_messages for tracking unseen messages. PARAMETERS:
|
| read_message_rangeA | Read messages in a specific sequence range. Zoom into a conversation section. AUTOMATIC TRIGGERS - Call this when:
DIFFERENCE from read_messages: This reads a specific range by sequence numbers, not just "new" messages. Use for targeted context retrieval. PARAMETERS:
|
| grep_messagesA | Search session messages by keyword. FTS5 full-text search across all messages. AUTOMATIC TRIGGERS - Call this when:
SEARCH TIPS: Use simple keywords. FTS5 supports: "word1 word2" (AND), "word1 OR word2". Avoid complex syntax - use plain phrases. PARAMETERS:
|
| session_contextB | Get a compiled context view of the session. PRIMARY tool for understanding session state. AUTOMATIC TRIGGERS - Call this when:
This is the GO-TO tool for session understanding. Returns summary + recent messages
WORKFLOW POSITION: Call after joining, before starting work, and periodically. PARAMETERS:
|
| save_artifactA | Save a research artifact (finding, analysis, summary) to the session. AUTOMATIC TRIGGERS - Call this when:
Use this for SIGNIFICANT work products, not for inline messages. Artifacts are stored as files with metadata indexed in SQLite. WORKFLOW POSITION: Call after completing substantial work. PARAMETERS:
|
| list_artifactsA | List artifacts in a session. Browse saved work products, analyses, and summaries. AUTOMATIC TRIGGERS - Call this when:
FOR ARTIFACT CONTENT, use get_artifact after finding the artifact_id. PARAMETERS:
|
| get_artifactA | Get the full content of a specific artifact. Retrieve saved analysis or report. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Call after finding the artifact_id from list_artifacts or messages. PARAMETERS:
|
| grep_artifactsA | Search artifact content by keyword. Find saved work by topic or term. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| leave_sessionA | Leave a collaboration session gracefully. Clean exit for an agent. AUTOMATIC TRIGGERS - Call this when:
DIFFERENCE from terminate_session: This is for individual agents leaving. Only the orchestrator should call terminate_session to end the entire session. PARAMETERS:
|
| terminate_sessionA | Terminate and complete a collaboration session. Orchestrator only. AUTOMATIC TRIGGERS - Call this when:
Only the orchestrator should call this. All artifacts are preserved and can be exported to the main library. WORKFLOW POSITION: Last tool in collaboration workflow (before export). PARAMETERS:
After termination, use export_to_library to persist findings. |
| export_to_libraryA | Export session artifacts as findings in the main OpenLMLib library. AUTOMATIC TRIGGERS - Call this when:
After a session completes, use this to permanently store the research outputs in the main library for future retrieval. WORKFLOW POSITION: After session termination, before starting new work. PARAMETERS:
|
| list_templatesA | List available session templates. Pre-built plans for common research patterns. AUTOMATIC TRIGGERS - Call this when:
After finding a template, use create_from_template to start. |
| get_templateA | Get details of a specific session template. See the plan and rules before using. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| create_from_templateA | Create a session from a predefined template. Structured plan + rules in one step. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Alternative to create_session when you want a structured plan. PARAMETERS:
|
| get_agent_sessionsA | Get all sessions an agent has participated in. Track agent's work history. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| sessions_summaryA | Get a summary of all active sessions. Quick overview of ongoing work. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| search_sessionsB | Search across all sessions by message content. Uses FTS5 full-text search to find sessions matching the query. Args: query: Search query (supports FTS5 syntax) status: Filter by session status (optional) limit: Max results (default 20) Returns: Dict with matching sessions ranked by relevance |
| session_relationshipsA | Find sessions related to a given session. Discover cross-session context. AUTOMATIC TRIGGERS - Call this when:
Identifies related sessions based on shared agents or same orchestrator. PARAMETERS:
|
| session_statisticsA | Get detailed statistics for a session. Messages, agents, artifacts, and timing. AUTOMATIC TRIGGERS - Call this when:
Includes message counts, breakdown by type and agent, artifact count, and time range. PARAMETERS:
|
| list_modelsA | Browse available models from OpenRouter API. Filter by provider, price, or context size. AUTOMATIC TRIGGERS - Call this when:
Requires OPENROUTER_API_KEY environment variable. Results cached for 1 hour. PARAMETERS:
|
| get_model_detailsA | Get detailed information about a specific OpenRouter model. Pricing, context, description. AUTOMATIC TRIGGERS - Call this when:
Use list_models first to find model IDs. PARAMETERS:
|
| recommended_modelsA | Get recommended OpenRouter models for a specific task type. Pre-filtered best choices. AUTOMATIC TRIGGERS - Call this when:
Task types: research, coding, analysis, writing, summarization, orchestrator, worker. PARAMETERS:
|
| get_co_scientist_scope_policyA | Get the Phase 0 Co-Scientist scope and safety policy. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use before Co-Scientist session creation. Returns accepted domains, blocked domains, approval-required actions, and Phase 0 limits. |
| screen_co_scientist_scopeA | Screen a proposed Co-Scientist run before creating sessions. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: First gate before any Co-Scientist session creation. PARAMETERS:
Returns allowed status, risk level, matched categories, reasons, and required approvals. If allowed=False, do not create a Co-Scientist session. |
| get_hypothesis_packet_schemaA | Get the Phase 1 Co-Scientist hypothesis packet schema. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use after scope screening and before saving or sending hypothesis packet artifacts. Returns a JSON-compatible schema description for artifact-first hypothesis packets. |
| get_evidence_quality_rubricA | Get Phase 6 Co-Scientist evidence labels and quality rubric. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use before writing hypothesis evidence or verification reports that will be promoted to verification. |
| verify_co_scientist_citationsA | Verify Co-Scientist citations against URLs, artifacts, or local files. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use after packet validation and before start_hypothesis_verification or submit_verification. PARAMETERS:
|
| validate_hypothesis_packetA | Validate a Co-Scientist hypothesis packet before verification. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Gate every packet before verification. If valid=False, fix the returned issues before continuing. PARAMETERS:
Returns valid status, issue count, and actionable validation issues. |
| create_co_scientist_runA | Create a linked Co-Scientist generation and verification workflow. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use after confirming the topic is in scope. This creates both the generation and verification sessions in one call. PARAMETERS:
|
| submit_hypothesisA | Submit a validated hypothesis packet to a Co-Scientist run. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use during the generation phase after validate_hypothesis_packet passes. PARAMETERS:
|
| list_hypothesesA | List compact hypothesis summaries for a Co-Scientist run. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| start_hypothesis_verificationA | Send selected Co-Scientist hypotheses to the verification session. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use after submit_hypothesis has indexed at least one packet. If hypothesis_ids is omitted, top_k highest-scored packets are sent. PARAMETERS:
|
| submit_verificationA | Submit a verification report for one Co-Scientist hypothesis. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| get_co_scientist_reportB | Get the current synthesized state of a Co-Scientist run. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| create_co_scientist_final_reportA | Create the final Co-Scientist report artifact for a verified run. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use after submit_verification has completed for every selected hypothesis. This creates one co_scientist_report artifact and compact session summaries for future recall. PARAMETERS:
|
| export_co_scientist_findingsA | Export supported Co-Scientist claims into the main knowledge library. AUTOMATIC TRIGGERS - Call this when:
WORKFLOW POSITION: Use after final report review. This intentionally skips inconclusive, contradicted, and unsafe/out-of-scope hypotheses. PARAMETERS:
|
| evaluate_co_scientist_runA | Evaluate a completed or in-progress Co-Scientist run. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| get_co_scientist_benchmark_tasksA | Get the built-in Phase 9 Co-Scientist benchmark task set. AUTOMATIC TRIGGERS - Call this when:
|
| compare_co_scientist_workflowsA | Compare benchmark results across workflow types. AUTOMATIC TRIGGERS - Call this when:
PARAMETERS:
|
| help_collabA | Get help about all collab MCP tools or a specific tool. Call this with no arguments to see all available tools and their purposes. Call with a specific tool_name to get detailed usage instructions. Args: tool_name: Optional specific tool name to get help for (e.g., 'create_session') Returns: Dict with tool descriptions and usage information |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Vedant9500/OpenLMlib'
If you have feedback or need assistance with the MCP directory API, please join our Discord server