usda_wasde_list_attributes
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
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The 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. | |
| year | Yes | The report's year, e.g. ``2026``. | |
| month | Yes | The 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. | |
| search | No | Keep 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_id | No | The 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. |