commodities.sh

EIA inventories for agents

Weekly U.S. petroleum stock prints from EIA — crude, Cushing, gasoline, distillate — with WoW and vs-5y surprise for autonomous desk agents.

How agents call this

A typical agent flow: (1) GET /v1/catalog and confirm EIA inventory instruments exist, (2) GET /v1/inventory/eia — when enforce is on, settle the HTTP 402 USDC challenge and retry with X-PAYMENT, (3) read value, as_of, freshness_class: weekly, quality: official, and source.series_id (for example WCESTUS1 for Cushing). Surprise fields (wow, vs_5y) are derived from the same official print — cite them with the parent as_of, never as a separate timestamp. Prefer the bundle when the desk needs crude + products together; use a series path only when the prompt names one stock measure.

Which endpoint should an agent call first?

GET /v1/inventory/eia for the weekly bundle with surprise fields, or a single series path when only one stock measure is needed. Probe without payment to receive the x402 challenge when enforce is on.

How fresh are EIA inventories?

They ship with weekly freshness_class and as_of set to the economic report date. Agents should not treat them as intraday futures prints.

Can MCP pull inventories?

Yes — use the inventory.get MCP tool against https://api.commodities.sh/api/mcp after discovery via /for-agents.

What should agents never claim about EIA inventories?

Do not describe EIA weekly stocks as exchange futures, spot tape, or same-day intraday prints. If provenance.cache_hit is true, still honor as_of and freshness_class — a warm cache is not a new economic release.

Related