Skip to main content
Glama

Update recipe sections

update_recipe_content
Destructive

Use only after reading the saved recipe with show_recipe and receiving a direct request to change its ingredients or instructions. Send the full content document and its current revision. Preserve existing section and item IDs for unchanged content; omitted sections or actions are deleted. New sections and actions can omit IDs. This replaces grouped text atomically and advances the revision. Photos remain optional and are not changed by this tool. On a revision conflict, read the recipe again and reconcile the requested edit before retrying.

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>",
      "expected_revision": "<expected_revision>",
      "content": "<content>"
    },
    "name": "update_recipe_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
recipe_idYes
expected_revisionYes

Output Schema

NameRequiredDescriptionDefault
contentYes
persistedYes

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 already flag destructive and non-idempotent, and the description adds the crucial semantics that are not derivable from annotations: full-document replacement, omitted sections/actions are deleted, atomic swap, revision advancement, and that photos are untouched. The conflict-retry instruction covers a behavior the schema 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 precondition, then semantics, then conflict handling — each sentence carries unique load. It is dense and slightly long, but no sentence is redundant.

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?

Given a destructive nested-document mutation with an output schema (so return values need not be described), the description covers preconditions, merge/delete semantics, ID handling, atomicity, revisioning, and error recovery. An agent has everything needed to call it correctly.

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 0% and the content object is deeply nested, yet the description explains id-preservation rules for existing vs. new sections/items and that expected_revision must carry the current revision. It does not explain recipe_id, schema_version, or array limits, leaving some gaps.

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+resource: replacing the full content document (ingredients and instructions) of a saved recipe. It distinguishes itself from the read sibling by requiring show_recipe first, and from save_recipe by describing modification rather than creation.

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?

Explicitly gives the precondition ('Use only after reading the saved recipe with show_recipe'), the trigger condition ('receiving a direct request to change its ingredients or instructions'), and names the sibling to read first. The revision-conflict path tells the agent exactly what to do on failure.

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.