Skip to main content
Glama

Download Document

download_document

Downloads ITU-T documents in a chosen format and language from the document management system, using TIES credentials and serving previously downloaded files from local cache.

Instructions

Download a document from the ITU-T document management system.

The document has to be available as the requested format and language. Downloading needs TIES credentials; a document that was downloaded before is served from the local cache.

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": "download_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoThe language code: "E", "F", "S", "A", "C" or "R".E
document_idYesThe DMS identifier, e.g. "T25-SG12-261015-TD-GEN-0520".
file_formatNo"PDF", "MSW" (Word), "ZIP" or "HTM".PDF
output_pathNoA path to write the document to. Defaults to the cache.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses the authentication requirement (TIES credentials) and a caching behavior (previously downloaded documents are served from the local cache), which materially affects expectations about freshness and side effects. It stops short of saying whether the file is written to disk and where, or what happens on a cache miss versus a failed format/language match.

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?

Three short sentences, front-loaded with the action, then the precondition, then the auth/cache caveats. No filler or repetition; the only minor inefficiency is that the precondition sentence is slightly terse about what to do when the constraint fails.

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?

An output schema exists, so return-value explanation is not required, and the description covers the two things structured fields cannot: credential requirements and cache behavior. For a four-parameter read tool this is nearly complete, with only the failure/fallback path for unavailable format-language pairs left implicit.

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 the schema already documents language codes, formats, the DMS identifier example, and the output_path default. The description adds only the constraint that the requested format and language combination must actually exist, which is a mild but real addition beyond the field docs. 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?

The description states a specific verb and resource ("Download a document from the ITU-T document management system"), which is unambiguous on its own. It does not name a sibling or contrast itself with the search/list tools in the catalog, but the download action is inherently distinguishable from retrieval-of-metadata tools.

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 is implied rather than stated: the sentence "The document has to be available as the requested format and language" tells the agent a precondition exists, and the TIES credential note signals an access requirement. However, it never says when to prefer this over search_documents or documents_for_question, nor what to do if the requested format is unavailable.

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