Skip to main content
Glama

Document files

list_document_files
Read-onlyIdempotent

The catalog of the original files of the document, with download links and pages. Use /api/documento/{id}/original to download the full original.

Input Schema

NameRequiredDescriptionDefault
idYesDocument ID from the procurement record (`get_procurement`).
agent_passNoIndividual agent credential, required together with X-Editalmd-Avaliacao.
acesso_codigoNoAuthorizes this document for whoever holds it. A purchase made with the account session issues no code: the global right of the account (HttpOnly cookie) applies, and the right of the guest edm_… applies with its token. A public receipt grants no access.
avaliacao_codigoNoevaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. Use it together with X-Agent-Pass; it is not a receipt or a purchase.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / acesso_codigo / description
      Previous value: -"Authorizes this document for whoever holds it. A public receipt grants no access."New value: +"Authorizes this document for whoever holds it. A purchase made with the account session issues no code: the global right of the account (HttpOnly cookie) applies, and the right of the guest edm_… applies with its token. A public receipt grants no access."
    • changedInput schema / properties / avaliacao_codigo / description
      Previous value: -"evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."New value: +"evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. Use it together with X-Agent-Pass; it is not a receipt or a purchase."
  2. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real value by disclosing the return payload shape (download links and pages), which matters because there is no output schema. It says nothing about access failures, pagination, or how the code-based authorization params affect results.

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, front-loaded with what the catalog contains, with no filler. The second sentence about the API endpoint is borderline since it references an HTTP route rather than tool behavior, but it is still compact and actionable.

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 read-only listing tool with fully documented parameters, rich annotations, and no output schema, the description covers what it returns and where to go for the full file. Authorization subtleties (access codes, agent pass) are handled in the schema, so little is missing.

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% and every parameter — id, agent_pass, acesso_codigo, avaliacao_codigo — is documented in detail in the schema itself. The description adds no meaning beyond that, 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?

The description names the resource precisely — the catalog of a document's original files, including download links and pages — so an agent knows it retrieves file metadata rather than document content. The verb is only implied by 'catalog of', and it never names the nearby alternatives (get_document, original_status, request_original) that an agent might confuse it with.

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 only implied: read this to enumerate a document's original files. The second sentence points at the raw API route '/api/documento/{id}/original' for the full download, which is a useful routing hint but not a sibling-tool alternative, and no condition is given for choosing this over get_document or original_status.

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.