Skip to main content
Glama

Describe a catalogue

get_document
Read-only

Everything about one catalogue except its source: which of the four root files have content, the component registry as summaries (name, type, what calls what, locks and inherited protection), the attached data and media sources with the variable each resolves under, and the current contentRevision. Call this before editing — it is the cheapest way to see the shape of a catalogue, and the summaries tell you which definitions an edit will be refused on.

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

Input Schema

NameRequiredDescriptionDefault
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
documentIdYesThe catalogue's id, from list_documents.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds meaningful context beyond that: the scope exclusion of source content, the fact that components come back as summaries rather than full definitions, and the pre-edit inspection value with its refusal-prediction signal. It does not describe response size, pagination, or failure modes.

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 sentences, front-loaded with the returned-content inventory and followed by the when-to-use rationale. The enumeration clause is dense but each item is informative; nothing is padded, though the single running sentence is long enough to be harder to scan than a short list would be.

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?

There is no output schema, so the description must convey the return shape — and it does so in detail across all four data groups plus contentRevision. What is missing is purely operational (response size, whether summaries are truncated, what happens for an unknown documentId), which is minor for a read-only inspection tool.

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 documentId, llm_model and conversation_id are all fully documented in the schema, including the conversation_id sequencing rule and the 'unknown' fallback for llm_model. The description adds no parameter-level guidance beyond that, which is the correct baseline when the schema carries the load.

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

Purpose5/5

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

The description enumerates precisely what 'everything about one catalogue' means: root-file content flags, component registry summaries (name, type, call graph, locks, inherited protection), attached data and media sources with their resolved variables, and contentRevision. It also draws a clear boundary ('except its source'), which implicitly separates it from a tool like read_data_source_full.

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?

It gives an explicit call-to-action with timing and rationale: 'Call this before editing — it is the cheapest way to see the shape of a catalogue', and explains that the summaries predict which edits will be refused. It stops short of naming the alternative tool to use when the source itself is needed, so the exclusion is implied rather than routed.

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