diff --git a/README.md b/README.md index 2b254dd..694fb16 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ plain-English questions like: - "What's the best place to sell corn today?" - "What's the current price of lime?" - "Show me the corn basis trend at Andersons Greenville over the last 30 days." +- "How is basis moving overall this week?" +- "What's the July corn futures price and how far has it moved since the open?" - "Which sources are stale or failing?" ## How it talks to data @@ -22,8 +24,8 @@ All data is read from ag-monitor over HTTPS: ag-bids-mcp ── X-API-Key ─► https://agbids.paul.farm/api/data/* ``` -Endpoints used: `/api/data/latest`, `/history`, `/best`, `/inputs`, `/sources`, -`/deliveries`. See the [ag-monitor source](https://git.jpaul.io/justin/ag-bids) +Endpoints used: `/api/data/latest`, `/history`, `/futures`, `/best`, `/inputs`, +`/sources`, `/deliveries`. See the [ag-monitor source](https://git.jpaul.io/justin/ag-bids) for the contract. ## Authentication @@ -73,12 +75,18 @@ auto-updates it every 5 minutes. | Tool | Returns | |---|---| | `best_local_bid(commodity)` | Where to sell `corn`, `soy`, or `wheat` for this month's delivery — markdown one-liner + table | +| `futures_quote(commodity, delivery?)` | CBOT futures price + change since open + change on the day. With a delivery month it resolves the listed contract; without it, the continuous nearby | | `current_lime_price()` | Latest lime quotes across all manual-entry sources | | `current_input_price(product?)` | MAP / Potash / Lime — all three or one | -| `latest_prices(commodity?, source?, delivery?)` | Snapshot table, optionally filtered | -| `price_history(commodity, source?, delivery?, days?)` | Compact time series | +| `latest_prices(commodity?, source?, delivery?, kind?)` | Live snapshot table; every filter optional (`kind` = `grain`/`fertilizer`) | +| `price_history(commodity?, source?, delivery?, days?)` | Time series per (elevator, crop, delivery); **every filter optional** — omit `commodity` to span all crops. Shows bid + basis trend + futures | +| `basis_movement(commodity?, source?, delivery?, days?)` | Aggregated basis trend, one headline line per crop (the cheap overview) | +| `basis_detail(commodity?, source?, delivery?, days?)` | Per-(elevator, crop, delivery) basis first→last drill-down | | `list_sources()` | Active scrapers + last-success timestamps | | `list_commodities()` | corn, soy, wheat, map, potash, lime | | `list_deliveries(commodity)` | Posted delivery labels, chronological | | `source_health()` | Stale / failing / healthy summary | | `todays_summary()` | Same shape as the morning brief snapshot | + +For the full per-release detail (signatures, conventions, example question → call +mappings), see [CHANGELOG.md](CHANGELOG.md).