Skip to main content
Glama

Kyrodata — Brazil Trade, Crop & Commodity Data

Open one public trade document by id

kyrodata_fetch
Read-onlyIdempotent

Opens ONE public foreign-trade document by id and returns it as prose to quote: title, body text and a public URL for citation. id is not free text — it is an id kyrodata_search returned, shaped heading:1201 (an HS heading) or country:160 (a partner country); anything else is refused rather than guessed. The body carries the measured figures of the latest published year, Brazilian exports and imports in USD FOB and kg, plus the window, the source and its caveats. Public government trade data only. The output here is a citable DOCUMENT with a URL, and this is the only tool that returns one. A heading as structured figures and a monthly series to reason over is kyrodata_get_heading_overview; free text to find an id in the first place is kyrodata_search. Credit class: comex (up to 2 comex tools per 60-second session = 1 credit).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesIdentifier of a document returned by kyrodata_search. Not a free-text query.
response_formatNoHow much of the answer to return. `concise` (the default) carries the headline figures; `detailed` adds the row-level series behind them and counts against the export quota.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe document id that was fetched.
urlYesPublic page with the same data, for citation.
textYesThe document body: the measured figures, the window, the source.
titleYesHuman-readable name of the document.
metadataYeskind, code, flow, window, sources, caveats and dataVersion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"Identifier of a document returned by kyrodata_search. Not a free-text query."
    • addedInput schema / properties / response_format / description
      Added value: +"How much of the answer to return. `concise` (the default) carries the headline figures; `detailed` adds the row-level series behind them and counts against the export quota."
  2. Added

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare the tool read-only, idempotent, and non-destructive guardian, but the description adds valuable context: the id format ('heading:1201' or 'country:160'), the data contents (Brazilian exports/imports in USD FOB and kg), the data source, and the credit cost (1 credit, max 2 per session). It also notes the output is citable with a public URL. These details are not in the annotations and enhance transparency. The only minor gap is not covering the response_format parameter's quota implication in the description, but it's already in the schema.

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?

The description is structured into clear sentences with no filler. It front-loads the core action and output, then covers constraints and sibling tools, and ends with credit costing. It's appropriately sized given the tool's complexity and the need to distinguish from many siblings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with an output schema and detailed annotations, the description is complete. It covers purpose, id constraints, output content, sibling differentiation, and costing. There is no missing information an agent would need to call it correctly.

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

Parameters5/5

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

With schema description coverage at 100%, the baseline is 3, but the description adds significant meaning beyond schema: it tells the agent that 'id' is not arbitrary text but must match specific shapes from kyrodata_search, and it explains the semantics of 'response_format' (concise vs detailed) and its quota implications. This goes well beyond the schema's brief descriptions.

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?

The description clearly states the tool's purpose: opening one public foreign-trade document by id and returning it as citable prose. It specifies the verb, resource, and output (title, body text, URL). It explicitly distinguishes itself from siblings by noting it is the only tool that returns a document with a URL, and it names complementary tools (kyrodata_get_heading_overview and kyrodata_search) to avoid confusion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: use this tool when you need a citable document, use kyrodata_get_heading_overview for structured figures, and use kyrodata_search to find an id. It also clarifies when not to use it and enforces the id constraint (not free text). This is exactly the kind of when/when-not alternative guidance that scores high.

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