Skip to main content
Glama

Get doc version

get_doc_version
Read-onlyIdempotent

Read one saved version of a doc, with its content as Plate JSON, or as Markdown when format is markdown. Versions come from list_doc_versions.

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": {
      "docId": "<docId>",
      "version": "<version>"
    },
    "name": "get_doc_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
docIdYesDoc ID or identifier such as DOC-12.
formatNomarkdown returns the content as Markdown.
versionYesVersion number, from list_doc_versions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the meaningful behavioral detail that output format switches based on the format argument, but says nothing about permission requirements or error behavior for a nonexistent version.

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

Conciseness5/5

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

A single sentence with no waste; the core action and the output-format condition are front-loaded, and the provenance note follows naturally.

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

Completeness4/5

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

For a simple read-only getter with no output schema, the description conveys what is returned (Plate JSON or Markdown) and where the version comes from, which is sufficient to call it correctly. Only edge-case behavior for invalid versions is unaddressed.

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 all three parameters are already documented in the schema, including the enum for format and the version's origin. The description restates the format behavior rather than adding new semantics such as accepted identifier forms or version bounds.

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?

States a specific verb and resource ('Read one saved version of a doc') and specifies the return representation (Plate JSON by default, Markdown when format=markdown). It implicitly distinguishes itself from get_doc by emphasizing a saved version, though it never explicitly contrasts with the current-doc getter.

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

Usage Guidelines4/5

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

Gives a clear prerequisite: versions come from list_doc_versions, which tells an agent where the required version number originates. It stops short of stating when to prefer this over get_doc or what happens for an out-of-range version.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources