Skip to main content
Glama

update_recipe

Destructive

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

NameRequiredDescriptionDefault
sqlYesThe new SQL, whole; same rules as `create_recipe`.
slotsNoThe NEW version's slots, in full (a widening usually repeats them with one more `allowed` value).
paramsNoThe declared parameters of the NEW version, in full.
recipe_idYes
accept_redefinitionNoConfirm a redefinition of a PUBLISHED recipe; the refusal says when it is needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=false and destructiveHint=true. The description adds the behaviors that actually matter: a new version is minted rather than edited in place, the server classifies the change as widening vs redefinition, only the creator may call it, an unchanged definition is refused, and redefining a published recipe silently changes answers for existing users until accept_redefinition is set. That user-impact warning is the key context the annotation cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then structured into definition payload, classification, and permission paragraphs. Dense but nearly every sentence carries a constraint; capitalization emphasis is used sparingly to flag the load-bearing words (WHOLE, WIDENING, REDEFINITION, PUBLISHED).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter mutation tool with no output schema and destructiveHint=true, the description covers everything an agent needs before calling: the payload shape, the semantic consequence (versioning), authorization, refusal conditions, and the opt-in flag for published recipes. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so the baseline is 3. The description still adds real meaning beyond per-field text: sql/params/slots must be passed WHOLE and replace the current ones (replacement, not merge), and accept_redefinition is framed as consent to changing published behavior 'unannounced' — more than the schema's 'Confirm a redefinition' one-liner.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair and resource — 'Widen or redefine a recipe, minting its next version' — and immediately positions it against the near-duplicate case ('Adding a slot value ... where a near-duplicate splits the answer'). An agent can distinguish this from create_recipe and describe_recipe without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('when a recipe ALMOST fits'), explicit when-not ('a different question is a new recipe'), a required prerequisite ('Start from describe_recipe'), and the conditions that gate the call (creator-only, unchanged refused, PUBLISHED needs accept_redefinition).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources