Skip to main content
Glama
mcp-knowledge-base

mcp-knowledge-base

by shelldon0x

get_document

Retrieve the full content of a specific document by its ID from the local knowledge base, enabling accurate answers and detailed follow-up on a known source.

Instructions

Retrieve full content of a specific document.

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": {
      "document_id": "<document_id>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/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 conveys read-only retrieval, but says nothing about permission/auth requirements, error behavior for an invalid or missing document_id, or whether "full content" implies truncation, size limits, or a particular return encoding.

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?

One short sentence with the verb and scope front-loaded and zero redundant wording. It is efficient, though the brevity is close to under-specification rather than crispness.

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 one-parameter, non-destructive read tool with no nested objects, the definition covers the essential mechanics. The missing pieces are the return shape (since there is no output schema) and failure behavior, which leave an agent guessing about what "full content" actually yields.

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

Parameters2/5

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

Schema description coverage is 0% for the single required parameter, so the schema provides no meaning beyond the name. The phrase "a specific document" hints that document_id selects one target, but the description never states the expected identifier format (ID, slug, path) or how to obtain one.

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 uses a specific verb and resource ("Retrieve full content of a specific document"), which is clearly distinct from delete_document, update_document, list_documents and search_knowledge_base. It doesn't explicitly name a sibling to distinguish itself, but the single-document read scope is unambiguous.

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?

The intent to fetch one document's content is implied by "specific document," so an agent can infer when to call it. There is no explicit guidance on when to use this instead of search_knowledge_base or how it relates to list_documents, and no prerequisites or exclusions are stated.

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