Skip to main content
Glama

usda_wasde_read_report_text

Read-onlyIdempotent

Reads USDA WASDE report narrative text for the latest release or a specified month, extracting commodity paragraphs from XLS or PDF files.

Instructions

The narrative of a WASDE release, WAOB's commodity paragraphs, as text.

Read from the release's XLS file, sheet WASDE Text: one string per row that holds text, as printed, the first the report's number ("WASDE - 676\r"), then the paragraphs from WHEAT: to cotton, 25 strings and 16,004 characters for October 2026. A release without an XLS file, or whose XLS holds no such sheet while it has a PDF, is read from its PDF instead (sdk-core ADR-0020 decision 4): one string per narrative page, the pages before the one headed Interagency Commodity Estimates Committees (pages 1 to 5 in July 2010 and October 2026), their text as pypdf extracts it; no page after that one is read, and no figure ever comes from a PDF. meta.endpoint is the file read ("wasde1026.xls", "wasde-07-09-2010.pdf"); meta.vintage for an XLS the report month its first table sheet prints in its first cell ("October 2026"), for a PDF, whose narrative prints a date and no month label, the ESMIS release id as esmis prints it ("95659"); meta.published_at the release time as ESMIS prints it, naive; meta.request the month given, the release id and the file's URL. The release is the latest, or the one of month with the latest release time that carries an XLS or a PDF file; every release since 2011 but 2014-01-23 carries an XLS. Every call downloads the file and keeps nothing. Requests: the latest release 1, or the month's pages of list_releases, 25 releases a page from the newest back to the month; then the release 1 and the file 1 (346 KB for October 2026's XLS), and 2 more where a PDF is read after an XLS without the sheet. A month without a release, or whose releases carry neither file (those of 1995 to 1997 carry TXT files), raises NotFoundError naming their formats; a month not written "YYYY-MM" InvalidRequestError; an XLS whose narrative sheet holds anything but text in its first column, or a PDF whose narrative's end cannot be told (no page headed Interagency Commodity Estimates Committees, as in a scan without text), ValidationError.

Args: month: The release month, "YYYY-MM", e.g. "2026-10", "2010-07"; None (the default) reads the latest release.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "usda_wasde_read_report_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses the XLS-vs-PDF fallback, that figures never come from PDF, that every call downloads the file and keeps nothing, the meta fields returned, and the exact error types for missing releases, bad month format, and unreadable files. This is far more behavioral context than the annotations carry; the only deduction is that much of it is phrased as internal implementation narrative rather than agent-facing behavior.

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 opening sentence is well front-loaded, but the remainder is a dense run-on packed with internal trivia (ADR-0020 decision 4, pypdf, string and character counts, 346 KB file sizes, page indices) that adds bulk without helping an agent decide or call. Much of it should be trimmed or moved to structured metadata.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool with no output schema, it covers the return shape (one string per narrative row/page) and the meta envelope well. However, completeness is undermined by the omission of any explicit relationship to sibling tools like `get_table`, leaving the agent to deduce which tool yields figures versus prose.

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%, but the description fully compensates: it gives the `"YYYY-MM"` format, two concrete examples, the `None` default meaning latest release, and the specific `InvalidRequestError` raised when the format is wrong. Nothing about the single parameter is left ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"The narrative of a WASDE release, WAOB's commodity paragraphs, as text" gives a specific verb and resource and implicitly separates this from table/figure siblings by stressing narrative-only content. It stops short of naming `get_table` or `get_latest_release` as the alternatives, so the agent still has to infer the routing.

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?

It says clearly that `month: None` reads the latest release and that a given month reads that month's release, and it points at `list_releases` for discovering valid months. What's missing is an explicit "use X instead when you want tables/figures" statement against the sibling tools.

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