latest_prices: include_expired passthrough for historical data #2

Merged
justin merged 1 commits from include-expired-passthrough into main 2026-06-08 19:45:03 -04:00
Owner

Companion to the ag-monitor change (justin/ag-bids#6). ag-monitor now drops expired delivery months from /api/data/latest by default; this exposes the opt-in through the MCP.

  • client.latest(include_expired=False) — forwards include_expired=true only when set (None is dropped), so the default query string is unchanged.
  • latest_prices tool — new include_expired arg, described to steer the model to set it only on an explicit historical request. Default stays current + future.

Tests: client passthrough (default omits the param; opt-in forwards it). 43 passed.

🤖 Generated with Claude Code

Companion to the ag-monitor change (justin/ag-bids#6). ag-monitor now drops expired delivery months from `/api/data/latest` by default; this exposes the opt-in through the MCP. - `client.latest(include_expired=False)` — forwards `include_expired=true` only when set (None is dropped), so the default query string is unchanged. - `latest_prices` tool — new `include_expired` arg, described to steer the model to set it only on an explicit historical request. Default stays current + future. Tests: client passthrough (default omits the param; opt-in forwards it). **43 passed.** 🤖 Generated with [Claude Code](https://claude.com/claude-code)
justin added 1 commit 2026-06-08 19:44:56 -04:00
latest_prices: add include_expired passthrough for historical data
CI / test (pull_request) Successful in 16s
CI / build-push (pull_request) Has been skipped
41313d8188
ag-monitor now drops expired delivery months from /api/data/latest by
default (current + future only). Expose the opt-in through the MCP so the
advisor can fetch past months when a farmer explicitly asks for history,
while the default stays current + future.

- client.latest(include_expired=False): forwards include_expired=true only
  when set (None is dropped), so the default query string is unchanged.
- latest_prices tool: new include_expired arg with a description steering
  the model to set it only on an explicit historical request.

Tests: client passthrough (default omits the param; opt-in forwards it).
43 passed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
justin merged commit 831c3e19de into main 2026-06-08 19:45:03 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: justin/ag-bids-mcp#2