Skip to main content
Glama

Get document

get_document
Read-only

Get one document's full metadata plus a freshly minted, short-lived (10 min) signed download_url if it has an uploaded file (null for reference-only documents — use source_url instead).

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 observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false). The description adds real behavioral context beyond them: the URL is freshly minted, short-lived (10 min), and null for documents without an uploaded file. It does not say what authentication the signed URL carries or what 'full metadata' includes, keeping it short of 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.

Conciseness5/5

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

One tightly written sentence that front-loads the primary outcome (metadata) and then the conditional secondary outcome (signed URL). Parenthetical handles the null case inline; every clause carries information and nothing is repeated from the schema.

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?

With no output schema, the description correctly carries the burden of explaining the return: metadata plus download_url, and the fallback to source_url for reference-only documents. It omits the shape of 'full metadata' and any auth/expiry caveats around consuming the URL, but for a single-parameter read tool this is close to sufficient.

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?

Only one required parameter exists and schema description coverage is 0%, so document_id is documented nowhere. The description implies a single document is selected by that identifier but adds no format, source, or constraints (e.g., ID vs key, whether it accepts external IDs). Adequate implication, but the schema gap is not compensated.

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 ('Get one document's full metadata') plus the key return payload (signed download_url). It does not explicitly differentiate itself from siblings like update_document or add_document, but the read nature and single-document scope are 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?

Usage guidance is indirect: it says to use source_url instead when download_url is null, which tells the agent how to handle reference-only documents. There is no explicit statement of when to call this versus other retrieval tools, and no prerequisites are mentioned, so guidance is implied rather than stated.

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