Skip to main content
Glama

Br Trade Top Partners

br_trade_top_partners
Read-onlyIdempotent

Top partner countries for a Brazilian product in a given year, from MDIC Comex Stat (live proxy). Pass either an 8-digit NCM code or a 2-digit NCM/HS chapter; omit both for Brazil's overall top trading partners that year. Sorted descending by value (USD FOB). Use for "top destinations for Brazilian soybeans in 2025" (ncm="12019000", year="2025") or "Brazil's biggest export markets overall in 2025" (year="2025").

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ncm": "12019000",
      "flow": "export",
      "year": "2025",
      "limit": 10
    },
    "name": "br_trade_top_partners"
  }
}

Input Schema

NameRequiredDescriptionDefault
ncmNoFull 8-digit NCM product code (e.g. "12019000" = soybeans). Use this OR chapter, not both; omit both for overall totals.
flowNoTrade direction: "export" or "import". Defaults to "export".
yearYes4-digit year (e.g. "2025").
limitNoMax partner countries to return. Defaults to 10, capped at 50.
chapterNo2-digit NCM/HS chapter code (e.g. "12" = oilseeds and grains).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds useful context beyond that: the MDIC Comex Stat live-proxy source and the descending sort by USD FOB value, which tells the agent what ordering to expect.

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?

Front-loaded with the core purpose, then the parameter rule, then the sort order, then two worked examples. Every sentence carries information and nothing is padded.

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 still conveys the return shape (partner countries, sorted descending by USD FOB) and the source. It could say more about the response fields or the limit cap's effect, but it is sufficient to call the tool correctly.

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 coverage is 100%, so all five parameters are already documented, including the ncm/chapter mutual exclusivity and the export default. The description restates the either/or rule and the omit-both case but adds no new syntax or format detail, so baseline 3 applies.

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 ('Top partner countries for a Brazilian product in a given year') plus the data source, and the scope (product-level vs. overall) makes it distinguishable from br_trade_top_products and br_trade_flows.

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 concrete when-to-use examples ('top destinations for Brazilian soybeans in 2025', 'Brazil's biggest export markets overall') and explains the omit-both case for overall totals. It stops short of explicitly naming sibling tools or stating when not to use this one.

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.