Skip to main content
Glama

usda_wasde_get_data

Read-onlyIdempotent

Retrieve monthly USDA WASDE table values by year and month, then filter records by table, commodity, region, attribute, or release for targeted analysis.

Instructions

Every value of a month's WASDE tables, one record each, complete in itself.

Read from the release's XML, pages 8 to 37: 6543 values for October 2026. A record holds the page's title with the report's number, the month, table, commodity, region, market year, forecast month, row label, class, statistic, unit, the value as printed with its number, its footnotes, each label beside its _label. The XLS names the commodities of pages 12 to 15, else the report's layout (commodity_source), and the U.S. pages' units (unit_source). After the fetch, the filters keep the records whose _label equals them. Requests: the pages of ESMIS's list from the newest to one past the month, at most 24, the release, the XML, and the XLS: 27 at most, 108 with 4 attempts each. release_id reads no list: 3 at most, 12. A month before July 2010 raises InvalidRequestError before anything is sent; a past month without a WASDE gives the empty list and a note, a later one NotFoundError.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "year": "<year>",
      "month": "<month>"
    },
    "name": "usda_wasde_get_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe XML file to read, by its name as ``list_releases`` gives it, e.g. ``"ORIGwasde-08-12-2013.xml"``, August 2013's original. ``None`` (the default) reads the release's first XML file whose name marks no original or revision (``ORIG…``, ``R1…``), else its first, and ``meta.notes`` names the others. A name the release lacks, or of another format, raises ``InvalidRequestError`` naming its files.
yearYesThe report's year, e.g. ``2026``.
monthYesThe report's month, 1 to 12, e.g. ``10``. A month before July 2010 raises ``InvalidRequestError``, and a file of a form that the reader does not know raises ``ValidationError`` after its download, naming the file.
tableNoKeep the records whose ``table_label`` is this, e.g. ``"World Wheat Supply and Use"``; ``list_tables`` lists them.
regionNoKeep the records whose ``region_label`` is this, e.g. ``"Argentina"``, ``"World"``, ``"U.S."``; ``list_regions`` lists them.
attributeNoKeep the records whose ``attribute_label`` is this, the row label as read, e.g. ``"Ending Stocks"``, which the world pages print with a line break; ``list_attributes`` lists them.
commodityNoKeep the records whose ``commodity_label`` is this, e.g. ``"CORN"`` (page 12, U.S.), ``"Corn"`` (world pages), ``"Total Grains"``; ``list_commodities`` lists them.
release_idNoThe ESMIS id of the month's release to read, e.g. ``95546``, one of November 2019's three, as ``list_releases`` gives it; the list is then not walked. ``None`` (the default) reads the month's latest release with an XML file. An id of another month or publication raises ``InvalidRequestError`` naming both dates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover readOnly/openWorld/idempotent/non-destructive, but the description adds substantial behavior beyond them: request budgets ('27 at most, 108 with 4 attempts each'), that the XLS supplies commodity and unit sources, that default name selection prefers ORIG/R1 files with the rest noted in meta.notes, and precise error semantics (InvalidRequestError before July 2010 and before any request is sent, empty list plus note for a past month lacking WASDE, NotFoundError for a future month). The information is present but phrased so densely that a reader must work to extract it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is a clean, front-loaded statement of purpose, and the description is not padded with filler. However, the remainder collapses request accounting, error taxonomy, and file-provenance detail into telegraphic clauses ('Requests: the pages of ESMIS's list from the newest to one past the month, at most 24') that are hard to parse and would read better as separated sentences.

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 eight parameters, no output schema, and no enum constraints, the description carries real weight and largely meets it: it describes the shape of each returned record, the default file-selection rule, the side sources (XLS for commodity and unit labels), and failure modes. Only the filter-interaction behavior (whether filters combine with AND, and what an empty result looks like) is left unstated.

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 baseline is 3. The description's only real addition is that filters are exact equality against the corresponding `_label` field, which sharpens the matching rule slightly beyond what the per-parameter schema text already says.

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 opening sentence states a specific resource and granularity: 'Every value of a month's WASDE tables, one record each, complete in itself,' and the record fields (table, commodity, region, market year, row label, unit, value, footnotes) are enumerated. It never names a sibling tool or explicitly contrasts itself with the list_* helpers or get_report_text, so differentiation is left to inference from the schema text.

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: 'the filters keep the records whose `_label` equals them' hints that exact labels from list_tables/list_regions/list_commodities are required, and release_id's 'reads no list' hint describes a path choice. There is no explicit statement of when to choose this over get_report_text or when to omit filters entirely.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.