Skip to main content
Glama

usda_wasde_get_report_text

Read-onlyIdempotent

Retrieve the narrative text of a month's USDA WASDE release, including WAOB commodity paragraphs, from its XLS or PDF for analysis.

Instructions

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

Read from the release's XLS, sheet WASDE Text: one string a row with text, as printed, the first the report's number ("WASDE - 676\r"). A release without an XLS, or whose XLS holds no such sheet or no text in it while it has a PDF, a placeholder counting as none, is read from its PDF: one string a page before the one headed Interagency Commodity Estimates Committees; no figure comes from a PDF. The release is the month's latest with an XLS or a PDF. Requests: the pages of ESMIS's list from the newest to one past the month, at most 24, the release, the file, the PDF after such an XLS, and a revision PDF where the report's is refused: 28 at most, 112 with 4 attempts each. release_id reads no list: 4 at most, 16. A past month without a WASDE gives the empty list and a note; a later one, or one whose releases hold neither file, NotFoundError; one before about 1982 InvalidRequestError.

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_get_report_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe XLS or PDF file to read first, by its name as ``list_releases`` gives it, e.g. ``"R1wasde-07-11-2013.xls"``, July 2013's first revision; an XLS without a narrative gives way to the release's PDF. ``None`` (the default) reads the release's first XLS whose name marks no original, revision or special report (``ORIG…``, ``R1…``, ``wasde-05-10-2001_wheat-revision.pdf``), else its first, then its PDF chosen alike, and ``meta.notes`` names the others. A name the release lacks, or of another format, raises ``InvalidRequestError`` naming its files.
yearYesThe report's year, e.g. ``2026``.
monthYesThe report's month, 1 to 12, e.g. ``10``. A file that the reader cannot read raises ``ValidationError`` after its download, naming the file.
release_idNoThe ESMIS id of the month's release to read, e.g. ``95659``, July 2010's, as ``list_releases`` gives it; the list is then not walked. ``None`` (the default) reads the month's latest release with an XLS or a PDF file. An id of another month or publication raises ``InvalidRequestError`` naming both dates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), yet the description still adds substantial behavior: the XLS sheet preferred, the PDF fallback with its page-stopping rule, that no figure comes from a PDF, the explicit request budget (24 pages, 28/112 requests; 16 with a 4-request cap for release_id), and the exact error classes per failure mode.

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

Conciseness3/5

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

The opening sentence front-loads purpose well, but the remainder is a dense run-on that compresses request accounting and error cases into barely parseable clauses ('28 at most, 112 with 4 attempts each'). Much of the file-selection detail repeats what the schema already documents, costing space without adding value.

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?

With no output schema, the description carries the return-format burden and does so: one string per row, the first being the report number, or one string per page from a PDF. It also closes the loop on edge cases (empty list plus note, NotFoundError, InvalidRequestError before ~1982), leaving little an agent needs but cannot find.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the parameter descriptions are themselves elaborate, covering the name default-selection rule and what release_id skips. The prose adds only marginal, mostly duplicated information (e.g. that the list is not walked), so baseline 3 is appropriate.

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 first sentence names a specific verb and resource: the narrative text of a month's WASDE release, WAOB's commodity paragraphs. It is clear this returns prose rather than tables, which implicitly separates it from usda_wasde_get_data, but no sibling is named explicitly, so differentiation is by inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains which release is read by default (latest with an XLS or PDF) and what happens when release_id is supplied, which is genuine call-time guidance. It never states when to prefer this tool over usda_wasde_get_data or list_releases, and there are no exclusions, so usage remains implied.

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