Skip to main content
Glama

Get recorded document

get_document
Read-onlyIdempotent

Get a recorded document's metadata (instrument no., volume/page, recorded date, enforcer, source URL, amendment chain), its scope rows, and its extracted clauses.

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

Input Schema

NameRequiredDescriptionDefault
doc_idYesDocument id from the documents list of lookup_restrictions or get_clauses (e.g. "TRV-DEC-10585-110").

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / doc_id / description
      Added value: +"Document id from the documents list of lookup_restrictions or get_clauses (e.g. \"TRV-DEC-10585-110\")."
  2. First observed

TDQS

B3.2/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 fully covered without the description. The description adds a breakdown of returned content, but that is largely redundant with the existing output schema, and it says nothing about permissions, size, or cost of the call.

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 front-loaded sentence with no filler; the parenthetical field list is dense but each item is informative. Nothing is padded or repeated.

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 single-parameter, read-only fetch with rich annotations and an output schema, the description covers what is needed to call it correctly. The only real gap is the absence of any routing hint toward or away from the sibling clause/restriction tools.

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?

With a single parameter at 100% schema coverage, the schema already explains doc_id fully, including an example format and where to obtain it (documents list of lookup_restrictions or get_clauses). The description contributes no additional parameter meaning, so the baseline 3 applies.

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+resource (get a recorded document) and enumerates the payload (metadata fields, scope rows, extracted clauses), so the agent knows exactly what comes back. It does not explicitly contrast itself with the sibling get_clauses, which also surfaces clause content, so differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance at all. The agent must infer from the name and the sibling list that this is the full-document-detail fetch versus lookup_restrictions or get_clauses; nothing in the text routes it.

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