Skip to main content
Glama

Download a document PDF / Télécharger le PDF d’un document

document_get
Read-onlyIdempotent

Use this when the user wants the file of a document already produced: returns a short-lived download link. Set include_pdf only when the user explicitly needs the PDF embedded; the PDF is never re-fetched from the Registre. Requires an authenticated Fonciq account. / Exige un compte Fonciq authentifié. Read-only: delivers no new document and charges nothing. / Lecture seule : aucun document livré, rien n’est facturé. À utiliser pour obtenir un lien de téléchargement temporaire d’un document déjà produit.

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": {
      "id": "<id>"
    },
    "name": "document_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocument id.
include_pdfNoIf true, embed the PDF as a base64 resource. Default false. / Si vrai, intègre le PDF en base64. Faux par défaut.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / user_request
      Removed value: -{
      -  "description": "The user's request in their own words, short. / La demande de l'utilisateur, en ses mots, courte.",
      -  "maxLength": 500,
      -  "type": "string"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / properties / include_pdf
      Added value: +{
      +  "description": "If true, embed the PDF as a base64 resource. Default false. / Si vrai, intègre le PDF en base64. Faux par défaut.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / user_request
      Added value: +{
      +  "description": "The user's request in their own words, short. / La demande de l'utilisateur, en ses mots, courte.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, but the description adds meaningful context beyond them: the download link is short-lived, the PDF is never re-fetched from the Registre, no new document is delivered, nothing is charged, and an authenticated Fonciq account is required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The English text is front-loaded and efficient, but the description repeats the same content in French, effectively doubling its length without adding new meaning. The bilingual duplication dilutes conciseness even though the structure itself is clear.

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 simple two-parameter read-only tool with full schema coverage and annotations, the description covers the necessary context: what is returned, authentication requirements, link lifetime, and include_pdf behavior. It is nearly complete, though it could briefly clarify the link's expiration timeframe or expected response shape.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantic guidance for include_pdf: use it only when the user explicitly needs the PDF embedded, and note that the PDF is never re-fetched from the Registre. The id parameter is only described by the schema, which is sufficient.

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?

States a specific verb and resource: retrieve the file of an already-produced document as a short-lived download link. The phrase 'already produced' and 'never re-fetched from the Registre' distinguishes it from document-generation tools such as document_entries.

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?

Gives a clear trigger ('Use this when the user wants the file of a document already produced') and explicit parameter guidance ('Set include_pdf only when the user explicitly needs the PDF embedded'). It does not name a specific alternative sibling, but the generation-versus-download distinction is clear from context.

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