Skip to main content
Glama

Magpie — USDA Agricultural Data for AI Agents

get_trade_flows

Get USDA GATS monthly trade flows (actual shipments) for a commodity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthsNoNumber of months (default 12, max 24)
partnerNoPartner country code or omit for all
commodityYesCommodity slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations present, the description carries the full behavioral burden, and it delivers almost nothing beyond the source name. It never states that this is a read-only lookup, describes the shape or units of the returned flow values (volume? value?), or mentions any rate limit or data-lag caveat typical of monthly GATS releases.

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?

A single front-loaded sentence with zero filler; the subject and qualifier both land immediately. Nothing could be trimmed without losing meaning.

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

Completeness2/5

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

There is no output schema and no annotations, so the description is the only place to explain what comes back. It omits units/measure (metric tons vs value), time granularity confirmation, and whether partner is broken out per row — meaningful gaps for a trade-flow data tool.

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 months, partner and commodity, including the default and max on months. The description adds no semantics beyond what the schema supplies, which is the expected baseline of 3.

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?

States a specific verb (Get), a named source (USDA GATS), a resource (monthly trade flows) and a scope qualifier (actual shipments) for a given commodity. The parenthetical 'actual shipments' usefully distinguishes it from sales-commitment tools like get_export_sales or compare_contracts_vs_shipments, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

No when-to-use guidance, no conditions, and no routing to alternatives. An agent cannot tell from the text why it would pick this over get_export_sales or compare_contracts_vs_shipments, both of which appear to touch the same domain.

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