usda_wasde_get_table
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
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | ||
| table | Yes |