update_recipe
Widen or redefine a recipe, minting its next version: the tool for when a recipe ALMOST fits. Adding a slot value, an optional filter or an optional parameter serves every existing user, where a near-duplicate splits the answer.
Pass the definition WHOLE: sql (DataFusion SQL), params and slots replace the current ones. Start from describe_recipe.
The server classifies the change. A WIDENING is strictly additive: every prior argument set plans identically. A REDEFINITION touches the SQL body or an existing parameter, or removes something; redefined_because says why.
Only the creator may change a recipe. An unchanged definition is refused. Redefining a PUBLISHED recipe needs accept_redefinition: true, since its users will get a different answer unannounced: use it to fix a wrong definition; a different question is a new recipe.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipe_id": "<recipe_id>",
"sql": "<sql>"
},
"name": "update_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The new SQL, whole; same rules as `create_recipe`. | |
| slots | No | The NEW version's slots, in full (a widening usually repeats them with one more `allowed` value). | |
| params | No | The declared parameters of the NEW version, in full. | |
| recipe_id | Yes | ||
| accept_redefinition | No | Confirm a redefinition of a PUBLISHED recipe; the refusal says when it is needed. |