Skip to main content
Glama

usda_wasde_get_table

Read-onlyIdempotent

Retrieves every value from a specified USDA WASDE table page, including row and column labels, with an optional release month for focused analysis.

Instructions

Every value of one WASDE table page, one record each, read from the release's XML file.

table is the page as the XML names it and list_tables lists it: "sr12" is printed page 12, U.S. feed grains and corn, "sr18" page 18, world wheat. Each record (WasdeTableValue) is one value with the labels of its row and column as printed, its table's title and its matrix: get_release's record without the page's own labels. The page's subtitle and footnotes, to which a footnote marker in a label refers ("Trade 2/"), are list_tables's, stated once per page; the report month is meta.vintage. 112 values on page 12 of October 2026, 364 on page 28, the most. The release is the latest, or the one of month with the latest release time that carries an XML file, read as get_release reads it: every call downloads the XML (3.4 MB for October 2026) through xippios-usda-esmis into a temporary directory, parses it and removes it, and nothing is kept between calls, so a Python caller wanting several pages of one month calls get_release once and keeps the records of each report. The MCP tool returns at most 400 rows or 128 KB, which every page of October 2026 fits, page 28 (129,899 bytes) with about 1 KB to spare; a page cut there says to call get_balance_sheet for one matrix or region. meta is get_release's: endpoint the file's name ("wasde1026.xml"), vintage its Report_Month ("October 2026"), published_at the release time as ESMIS prints it, naive, request the arguments given with the release id and the file's URL. Requests: as get_release's, the latest release 1 or the month's pages of list_releases, then the release 1 and the file 1. A table list_tables does not name raises InvalidRequestError naming the closest pages, before anything is sent; a month without a release or whose releases carry no XML file raises NotFoundError, a month not written "YYYY-MM" InvalidRequestError, a file without the page NotFoundError and a file the parser cannot read ValidationError.

Args: table: The page as the XML names it, "sr" and its two-digit number, e.g. "sr12" (U.S. feed grains and corn), "sr24" (world rice), "sr08" (world and U.S. grains); list_tables lists the 30 pages, "sr08" to "sr37". month: The release month, "YYYY-MM", e.g. "2026-10"; None (the default) reads the latest release.

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": {
      "table": "<table>"
    },
    "name": "usda_wasde_get_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNo
tableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world behavior, and the description still adds substantial context beyond them: each call downloads a 3.4 MB XML into a temp directory, parses and deletes it, keeps nothing between calls, and caps output at 400 rows or 128 KB. It also enumerates which exception type arises for each failure mode (InvalidRequestError, NotFoundError, ValidationError), which is exactly the behavioral detail annotations cannot carry. Minor deduction because the size/caching discussion is woven into a dense narrative rather than stated crisply.

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 purpose is front-loaded and nearly every sentence carries information, but the body is a single sprawling block with run-on sentences and stacked parentheticals (the footnote-marker sentence in particular). Content is valuable yet poorly partitioned, making it harder to scan than a short bulleted breakdown of return shape, limits, and errors would be.

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?

There is no output schema, so the description must explain returns, and it does: the WasdeTableValue record shape, the labels and matrix fields, and the ``meta`` fields (endpoint, vintage, published_at, request). Combined with the documented error taxonomy and payload limits, an agent has everything needed to call this correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the full burden, and it does: ``table`` is ``"sr"`` plus a two-digit number with worked examples (sr12, sr24, sr08) and the valid sr08–sr37 range, and ``month`` is ``"YYYY-MM"`` with a stated default of latest release. This adds meaning well beyond the bare string properties in the schema.

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?

The opening sentence names a specific verb, resource and scope: every value of one WASDE table page, one record each, from the release's XML. It also distinguishes itself from siblings by naming ``list_tables`` for page names and ``get_release`` for the underlying record, so an agent can tell what this tool does that the others do not.

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

Usage Guidelines5/5

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

Explicit routing is given: use ``list_tables`` to discover valid page names, use ``get_release`` once if a Python caller wants several pages of one month, and call ``get_balance_sheet`` when a page is truncated by the row/size cap. The conditions that select each alternative are stated, not implied.

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