feat: nutrient_cost tool — cheapest fertilizer per lb of N/P/K #1
Reference in New Issue
Block a user
Delete Branch "feat/nutrient-cost"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part 2 of planning #90 — the advisor's surface for cost-per-nutrient. Pairs with ag-bids #5 (the
/api/data/nutrient-costendpoint).What
New MCP tool
nutrient_cost(geo)→agbids__nutrient_costfor the advisor. Wraps ag-monitor's/api/data/nutrient-costand formats:$/lbtable (sorted by $/lb N) with grade, $/ton, and $/lb for each nutrient.Tool docstring steers the model to use this (not
input_cost_trend, which is $/ton only) when the grower asks "best buy / best nitrogen value". UAN shown as assumed 32-0-0 with a footnote.client.nutrient_cost+fmt.fmt_nutrient_cost(+_per_lb). 42 tests pass.Smoke (post-deploy)
Via the advisor or directly:
nutrient_cost("Cornbelt")→ anhydrous cheapest N, potash cheapest K₂O.