rb209_recommendation_recommendations
Calculate nutrient recommendations for arable and grass fields based on soil analysis, crop type, and rainfall data. Returns N, P2O5, K2O, MgO, SO3, and lime guidance in one call.
Instructions
POST /api/Recommendation/Recommendations — The main connection to calculate nutrient recommendations. — Before calling, collect ALL inputs from the user — do not assume rainfall, sowing date, yield or straw handling; get rainfall from a postcode via rb209_rainfall_average. Call this ONCE — it returns every nutrient you enable in nutrients (N, P2O5, K2O, MgO, SO3, lime); do not call it per-nutrient or repeat it. For an ARABLE field the body MUST include field.grass = {} AND field.grassland = {} (both empty objects) alongside field.arable = [ ... ]; a missing field.grass causes the misleading 422 '…calculating the crop order', not a 'grass required' error (this server auto-fills them, but be explicit). No soil analysis? send field.soil.soilAnalyses = [] and skip the soil index/methodology lookups. cropInfo2Id (1 = straw baled/removed, 2 = straw incorporated) strongly affects K — always ask the user. Resolve all IDs from the lookup tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes |