Skip to main content
Glama

usda_esr_get_release_dates

Read-onlyIdempotent

Retrieve USDA ESR export-data release dates and current market years per commodity, with optional since filtering to identify commodities updated after a prior vintage.

Instructions

When ESR last released each commodity's export data, with its current market year.

One request to ESRData_GetDataReleaseInfo, one record per commodity: release_time_stamp, the last release of the commodity's export data, which can revise several market years, and the current market year, named by the year it ends in, with its first and last day. The time stamp is as ESR sends it, without a time zone, since the documentation names none: meta.published_at is the newest of the whole answer, naive, with meta.published_at_naive true, and meta.vintage that time's text as ESR sent it, with or without a filter; both are empty only when ESR lists no commodity. To fetch only what changed, store meta.vintage, pass it as since on the next call and call get_exports for the commodities returned; an empty list means nothing was released since.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoKeep only the commodities whose ``release_time_stamp`` is strictly later than this time, the ``meta.vintage`` text of an earlier call, e.g. ``"2026-10-22T08:30:42.67"``: an ISO date and time without a time zone, as ESR prints it, e.g. ``"2026-10-01T00:00:00"`` (a date alone, ``"2026-10-01"``, is its midnight). A release at exactly that time is not newer. A text with a zone (``"2026-10-22T08:30:42+00:00"``, ``"...Z"``) or one that is not a date and time is refused before the call. Omit (``None``) for every commodity.
commodity_codeNoKeep only this commodity's record, its current market year, an ESR commodity code as ``list_commodities`` gives it, e.g. ``104`` (Wheat - White, June to May), ``401`` (Corn, September to August), ``1701`` (beef muscle cuts, the calendar year). Compared by equality after the one request, since upstream filters nothing; an unknown code is refused before it, naming the closest codes, and a commodity the release list lacks answers the empty list. Omit (``None``) for every commodity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, and non-destructive behavior, and the description adds real substance on top: one upstream call to ``ESRData_GetDataReleaseInfo``, one record per commodity, timestamps as ESR sends them with no time zone, ``meta.published_at_naive`` true, and empties only when ESR lists no commodity. The timezone/naive-time disclosure is exactly the kind of contract detail the annotations cannot express. It does not address error surfaces or pagination, leaving a small gap.

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 purpose is front-loaded in the first sentence, but the remainder is a single dense, multi-clause sentence with nested parentheticals and awkward phrasing such as 'the current market year, named by the year it ends in, with its first and last day'. Every fact is relevant, yet the packaging makes it harder to parse than needed.

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-shape burden and does so: it names ``release_time_stamp``, the per-commodity record, the market year and its boundaries, and the ``meta.published_at``/``meta.vintage`` envelope fields including their empty-answer semantics. Nothing an agent needs to call this correctly or interpret the result appears to be missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: it explains that ``meta.vintage`` is the value to store and pass as ``since``, and that the commodity list returned by this call should drive the follow-up ``get_exports`` call. That links the parameters to an operational workflow rather than restating syntax.

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 opening line names the resource and the exact datum returned: when ESR last released each commodity's export data, plus the current market year. It is a specific verb-plus-resource statement that an agent can match against a data-freshness need. It does not name a sibling to contrast with directly, which keeps it just under the top band.

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 definition gives an explicit incremental workflow: store ``meta.vintage``, pass it as ``since`` on the next call, and call ``get_exports`` for the commodities returned, with an empty list meaning nothing new. That names a sibling and the condition under which this tool feeds it. It lacks an explicit statement of when not to call this tool (e.g. versus querying exports directly).

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