Skip to main content
Glama

usda_esr_list_units_of_measure

Read-onlyIdempotent

Lists ESR units of measure with their IDs and commodity/export unit mappings from packaged data, enabling unit identification without an upstream call.

Instructions

List ESR's units of measure with their ids, the unit_id of every commodity and export.

Answered from ESRData_GetUnitsOfMeasure as packaged with this version (reference/unitsOfMeasure.json), without an upstream call: 5 units when packaged, in upstream order: 1 Metric Tons (grains, oilseeds and their products, rice, beef and pork), 2 Running Bales (the cottons, 1301 to 1404), 3 Pieces (whole hides and skins, 1601 to 1603), 4 NUMBER (1604, 1606, 1607) and 5 Pounds (1605, 1608). The name field is plural upstream, unit_names, and stays so; the names are upstream's, unchanged. enums.UnitId names the same ids. meta.retrieved_at is when the package fetched the list; meta.vintage is empty, as upstream gives the list no release identifier. Takes no parameters.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint; the description adds real value by disclosing the packaged source file, the fixed count of 5 units, upstream ordering, the plural 'unit_names' field name, and that meta.vintage is empty. That said, 'without an upstream call' sits somewhat at odds with openWorldHint=true, and no contradiction is severe enough to flag, but the mixed signal slightly undercuts the safety profile the agent reads from annotations.

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

Conciseness4/5

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

Core purpose is front-loaded in the first sentence and the rest reads as supporting detail. The enumeration of unit ids with their commodity code ranges is longer than strictly necessary for invocation, though it does help an agent interpret the returned ids.

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 burden of describing return values and does so: id/name pairs, the 'unit_names' field, enums.UnitId equivalence, and the meta.retrieved_at / meta.vintage fields. Nothing an agent needs in order to call or interpret this zero-parameter tool is 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?

The schema has zero parameters and the description states 'Takes no parameters,' which is exactly the confirmation an agent needs; with no parameters there is no additional semantics to add, so this is at the baseline ceiling rather than a standout.

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 and resource ('List ESR's units of measure with their ids') plus the cross-reference role ('the unit_id of every commodity and export'), which separates it from usda_esr_list_commodities and the other list siblings without needing their schemas.

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 makes clear this is a lookup of unit identifiers used by commodities and exports, and clarifies the data is served locally with no upstream call, so an agent knows it is cheap and always available. It stops short of explicit when-not-to-use guidance or naming the sibling to prefer for a different question.

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