Skip to main content
Glama
medxpert-library-connector

medxpert-library-connector

ask_knowledge

Ask questions against your locally indexed Markdown knowledge base and get citation-backed answers generated offline through Ollama, with source references.

Instructions

RAG 问答:检索知识库片段 + 本地生成模型回答,附引用来源。零积分、离线可用。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "question": "<question>"
    },
    "name": "ask_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNo检索片段数(默认 5)
questionYes向知识库提问

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose meaningful behavior beyond structure: answers are generated locally, work offline, cost zero credits, and include citations. It does not state latency, answer length, what happens when no snippet is retrieved, or any limits on retrieval depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short clauses with no filler; the core action is front-loaded and the cost/offline qualifier follows. Nothing is redundant, though the structure is telegraphic and could carry one more sentence of routing guidance at no real cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-style tool, the description covers purpose, cost, offline capability, and that citations come back, which partly substitutes for the missing output schema. It remains thin on failure modes and on how retrieved snippets relate to the generated answer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters are already documented, including top_k's default of 5. The description adds no further semantics such as when to raise top_k or how it trades off against speed. Baseline 3 is appropriate when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific operation: RAG question answering that both retrieves knowledge-base snippets and generates an answer locally, with citations attached. This is distinguishable from a plain retrieval tool like search_knowledge because the 'generation' step is stated. It stops short of explicitly naming the sibling it replaces, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: an agent can infer this is the tool for a synthesized, cited answer rather than raw snippets. There is no explicit 'use this instead of search_knowledge when...' routing, and no prerequisites or exclusions are given. The 'zero credits / offline' note helps but is framed as a property, not a usage condition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools