usda_wasde_get_balance_sheet
Retrieve a USDA WASDE supply-and-use balance sheet for one commodity and region, giving each printed row and column value from a chosen or latest release month.
Instructions
One commodity's supply-and-use balance sheet in a WASDE release, from its XML file.
commodity is named as list_commodities prints it, its case kept: "CORN" is
page 12's U.S. corn, "Corn" the world corn of pages 22 and 23, "Wheat" both
page 11 and pages 18 and 19. Where the packaged commodity list has a matrix of the
commodity for region "United States" (the default) or "Mexico", the answer
is every value of that matrix: page 11's U.S. Wheat Supply and Use for "Wheat"
(the matrices are told apart by their title: page 11's by-class table, U.S. Wheat by Class: Supply and Use, a breakdown, is get_table("sr11")'s), page 16's
Mexico matrix for "Sugar" with "Mexico". Otherwise the answer is the rows of
the commodity's world matrices, pages 18 to 30 (two pages for wheat, coarse grain,
corn, rice and cotton, one page of three matrices for soybean, soybean meal and
soybean oil), whose region, its indent and footnote marker left out, is region
as given, its case kept: "Argentina" matches " Argentina", "World"
matches "World 3/". So "United States" answers the world table's United
States rows for the commodities without a U.S. matrix under their name,
"Coarse Grain", "Corn", "Rice", "Soybean", "Soybean Meal" and
"Soybean Oil", and the U.S. page for "Wheat" and "Cotton". Nothing is
mapped onto another source's names. The matrices are the packaged list's, read from
the November 2026 release: a record is kept where its page, matrix and title are a
matrix's. 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 ("World 3/",
"Trade 2/"), are list_tables's, stated once per page; the report month is
meta.vintage. 60 values for "CORN", 280 for "Meats", the most, 28 for
wheat's rows of one region in October 2026. Every call downloads the month's XML (3.4
MB for October 2026) as get_release does and keeps nothing, so a Python caller
wanting several balance sheets of one month calls get_release once. The MCP tool
returns at most 300 rows or 128 KB, which every balance sheet of October 2026 fits,
"Meats" the largest at 90,850 bytes; one cut there says that a region narrows a
world page's rows. meta is get_release's, meta.request the arguments given
with the release id and the file's URL; the requests are get_release's. A
commodity list_commodities does not name, or a region its pages do not print,
raises InvalidRequestError naming the closest, before anything is sent; a month
without a release or without an XML file NotFoundError, a month not written
"YYYY-MM" InvalidRequestError, a file that holds none of the matrices under
the packaged titles NotFoundError (get_table answers the page as that month
prints it).
Args:
commodity: The commodity as list_commodities prints it, e.g. "CORN",
"Corn", "Wheat", "SOYBEAN MEAL", "Soybean Meal", "Sugar",
"Meats".
region: "United States" (the default) or "Mexico" for a U.S. or Mexico
matrix, or a region of the commodity's world pages as list_regions prints
it without its indent and footnote marker, e.g. "Argentina", "World",
"European Union", "World Less China".
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": {
"commodity": "<commodity>"
},
"name": "usda_wasde_get_balance_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | ||
| region | No | United States | |
| commodity | Yes |