Skip to main content
Glama

Magpie — USDA Ag Markets: Grain, Fertilizer, WASDE & Export Sales

get_spreads

Read-onlyIdempotent

Derived input-to-output price spreads computed from the latest stored Magpie prices: corn-to-nitrogen cost broken down per fertilizer product (bushels of corn per ton of product and per pound of actual N), the soybean-to-corn price ratio, and the feeder-to-fed cattle spread. Use for planting and feeding economics; use the raw price tools (get_grain_price, get_fertilizer_price, get_livestock_price) instead for the quotes behind a spread. Read-only; no API key. These are Magpie calculations over stored USDA MARS prices, not USDA-published figures; a spread is omitted when either side has no stored price. Geography defaults to IL and applies to both sides of each spread.

Input Schema

NameRequiredDescriptionDefault
geographyNoState/region code used for both sides of the spreads (e.g. IL, IA). Default: ILIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / geography / description
      Added value: +"State/region code used for both sides of the spreads (e.g. IL, IA). Default: IL"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent safety, but the description goes well beyond them: no API key required, data provenance (Magpie calculations over stored USDA MARS prices, not official USDA figures), and the omission rule when either side lacks a stored price. The provenance caveat is material for an agent reporting these numbers as facts.

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

Conciseness5/5

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

Definition is front-loaded in the first sentence, followed by routing, then provenance and edge-case behavior. Dense but every clause carries information; nothing is filler.

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 must describe return content and does so by enumerating each spread and its units. Combined with the omission rule and provenance note, an agent can call and correctly interpret this tool without further context.

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 coverage is 100% and the single parameter already documents the default IL and its dual application. The description restates that geography applies to both sides of each spread, which reinforces interpretation but adds little the schema does not already say, so the baseline 3 fits.

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?

Names a specific derived resource and enumerates its three outputs (corn-to-nitrogen cost per product and per pound of N, soybean-to-corn ratio, feeder-to-fed spread), so an agent knows exactly what comes back. It also explicitly separates itself from the raw quote tools, which is the main confusion risk among these siblings.

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

Usage Guidelines5/5

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

States the use case ('planting and feeding economics') and names the exact alternative tools (get_grain_price, get_fertilizer_price, get_livestock_price) with the condition that selects them (you want the quotes behind a spread). When-to-use and when-not-to-use are both explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources