Skip to main content
Glama

Imports vs local production (supply balance)

supply_balance
Read-onlyIdempotent

For a staple commodity in a Central American country: local production, imports, exports and consumption by year (USDA PSD), the import share and self-sufficiency, and the market value at import prices with the main suppliers (UN Comtrade). Covers maize, wheat, rice, beef, chicken, pork, sugar, coffee, soybean meal, soybean oil, palm oil, sorghum.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoes
countryNoGT
productYesProduct in Spanish or English, e.g. "maíz", "chicken".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuine context beyond that: it discloses that results are assembled from two sources (USDA PSD for balances, UN Comtrade for values/suppliers) and enumerates the derived metrics returned, which is important since there is no output schema.

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?

A single dense sentence front-loads the core output set before the commodity list, and every clause carries information (metrics, sources, coverage) rather than filler. It reads as a run-on, but nothing is redundant enough to cut.

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 and only one documented parameter, the description carries the return-value burden and does so by listing the metrics and their provenance. Gaps remain around temporal range (which years are available) and result granularity, but an agent can form a correct call from what is given.

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 description coverage is only 33% (only 'product' is documented), so the description must compensate, and it does: it supplies the supported commodity vocabulary and constrains 'country' to Central America, complementing the enum. It does not explain the language parameter's effect on returned text or map the English commodity names to their Spanish equivalents, so the compensation is partial.

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 concretely (supply balance: production, imports, exports, consumption, import share, self-sufficiency, market value, suppliers) and its scope (staple commodity, Central American country), and it names the two underlying sources (USDA PSD, UN Comtrade). It does not explicitly contrast itself with near-neighbors such as trade_by_product, find_suppliers, or search_prices, so overlap must be inferred.

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 implied rather than stated: the agent can infer this is for country-level supply/self-sufficiency questions about listed staples, but there is no explicit when-to-use, no when-not-to-use, and no pointer to an alternative tool for adjacent questions like bilateral trade flows or price lookups.

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