Skip to main content
Glama

usda_wasde_list_attributes

Read-onlyIdempotent

Lists a WASDE month's row labels (attributes) with their tables, letting you search labels and select a release or XML file to inspect.

Instructions

The row labels of a month's WASDE release, as printed and as read, with their tables.

One row per distinct row label text of the month's records in the order of the file, read from the release's XML, 110 to 138 a month in the files read whole: page 14's " Ending Stocks" and the world pages' "Ending\r\nStocks" both read "Ending Stocks", the attribute_label that get_data's attribute compares. A row's tables are those that print it; release_id and name choose a release or a file as there. Requests: the pages of ESMIS's list from the newest to one past the month, at most 24, then the release and the XML: 26 at most, 104 with 4 attempts each. release_id reads no list: 2 at most, 8. A month before July 2010 raises InvalidRequestError before anything is sent, a past month without a WASDE answers the empty list with a note, and a month after the latest 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_list_attributes"
  }
}

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.
searchNoKeep the rows where this text occurs, ignoring case, in the row label as printed or as read or in one of its tables, e.g. ``"ending stocks"``, ``"price"``; ``None`` (the default) keeps every row.
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

A4.2/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open world), yet the description adds a great deal: per-month row counts, the ESMIS paging cap of 24, the release/XML request budget of 26 (104 with retries) or 2 (8 with release_id), and the exact error behaviors (InvalidRequestError before sending, empty list with a note, NotFoundError). This is unusually rich context beyond structured fields.

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?

Purpose is front-loaded and every clause carries information, but the prose is dense and run-on ('26 at most, 104 with 4 attempts each'), making the request-budget details hard to scan. It earns its place but could be tightened and reformatted.

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 five-parameter tool with no output schema, the description fully specifies the return shape (one row per distinct label, with its tables) and documents error, empty, and out-of-range behaviors. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the baseline is 3. The description goes beyond the schema by explaining how the attribute labels relate to get_data's attribute filter and how release_id/name selection mirrors sibling tools, adding cross-tool meaning rather than repeating field docs.

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 line states the resource precisely: the row labels of a month's WASDE release with their tables. It also distinguishes itself from get_data by naming the connection ('the attribute_label that get_data's attribute compares'). The verb is implicit rather than explicit ('lists'), which keeps it just shy of a 5.

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?

It clearly implies the use case by tying the returned labels to get_data's attribute parameter, and explains how release_id and name select a release/file 'as there'. It does not explicitly say when to prefer this over usda_wasde_list_tables or state exclusions, so guidance is strong but not exhaustive.

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