Skip to main content
Glama

Magpie — USDA Agricultural Data for AI Agents

get_crop_stats

Read-onlyIdempotent

Annual NASS survey statistics — yield, production, planted or harvested area — for a commodity at national or state level, from USDA NASS QuickStats. These are survey estimates, not market prices. Use for production fundamentals; use get_crop_condition or get_crop_progress instead for in-season weekly crop status. Read-only lookup of stored statistics; no API key. Returns every stored period (year) for the requested statistic, most recent first; the stored copy refreshes weekly. Commodity, statistic, and geography are case-insensitive and default to CORN, YIELD, and US.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statNoStatistic type (YIELD, PRODUCTION, AREA PLANTED, AREA HARVESTED). Default: YIELDYIELD
commodityNoCommodity (CORN, SOYBEANS, WHEAT, COTTON, SORGHUM, OATS, BARLEY, RICE). Default: CORNCORN
geographyNoUS for national, or state code (IA, IL, etc.). Default: USUS

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / commodity / description
      Previous value: -"Commodity (CORN, SOYBEANS, WHEAT, etc.)"New value: +"Commodity (CORN, SOYBEANS, WHEAT, COTTON, SORGHUM, OATS, BARLEY, RICE). Default: CORN"
    • changedInput schema / properties / geography / description
      Previous value: -"US for national, or state code (IA, IL, etc.)"New value: +"US for national, or state code (IA, IL, etc.). Default: US"
    • changedInput schema / properties / stat / description
      Previous value: -"Statistic type (YIELD, PRODUCTION, AREA PLANTED)"New value: +"Statistic type (YIELD, PRODUCTION, AREA PLANTED, AREA HARVESTED). Default: YIELD"
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources