Skip to main content
Glama

Get document

get_document
Read-onlyIdempotent

Retrieve a document's processing status and current download link (valid 5 minutes), or check whether an asynchronous create or edit request has finished.

Instructions

A document's status and fresh download links (they expire after 5 minutes). Also to check on a document create_document or edit_document returned before it finished.

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_idYesdoc_…

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), and the description adds a genuinely non-obvious behavioral fact: download links expire after 5 minutes, which affects how an agent must sequence calls. It does not characterize the possible status values or what an incomplete document response looks like, which keeps it from a 5.

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 sentences, no filler, and the most decision-relevant fact (5-minute link expiry) is placed early. The first sentence is a noun phrase rather than a clause, which makes the opening slightly less crisp than an explicit verb statement.

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 one-parameter read with no output schema, the description covers the essentials: what comes back (status, download links) and the polling scenario. It stops short of describing the shape of the status field, which is the remaining gap given there is no output schema to fall back on.

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

Parameters4/5

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

There is a single required parameter with 100% schema description coverage, so the schema carries the semantics; baseline for this case is 4. The description adds no further detail about the document_id format beyond what the schema shows.

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 states the resource and what is returned: a document's status plus fresh download links. It is a fragment ('A document's status and fresh download links') rather than an explicit verb+resource phrase, but the meaning is unambiguous and it is not confusable with siblings like list_documents or get_report.

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?

Explicitly names when to reach for it: to check on a document that create_document or edit_document returned before completion, which is a concrete polling use case tied to named siblings. It gives no explicit exclusion or when-not condition, so it falls short of a 5.

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