Skip to main content
Glama

usda_wasde_get_balance_sheet

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
monthNo
regionNoUnited States
commodityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses that every call downloads the month's XML, keeps nothing, and returns at most 300 rows or 128 KB. It also names the error classes and validation-before-download behavior, which is substantial behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the Args block is helpful, but the body is a dense wall of run-on prose with page numbers, matrix titles, byte counts, and repeated cross-references. Much of it is relevant to edge cases, but the overall length and scan difficulty clearly hurt conciseness.

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?

Given the complex mapping rules, no output schema, and remote-data behavior, the description covers return records, meta fields, row/size limits, error conditions, naming constraints, and alternatives. An agent has enough information to call it correctly.

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 carries the full burden for three parameters. The Args section explains case preservation for commodity, default and matrix-specific meaning for region, and YYYY-MM format plus latest-release default for month.

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 first sentence states a specific verb, resource, and scope: one commodity's supply-and-use balance sheet in a WASDE release from its XML file. It also distinguishes case-sensitive commodity meanings and contrasts the result with get_table's page output.

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?

The description gives detailed selection rules for commodity and region and names alternatives: list_commodities/list_regions for naming, get_table for the page as printed, and get_release when a Python caller wants several balance sheets in one month. It stops short of an explicit when-not-to-use statement, but the alternatives are clear.

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