Skip to main content
Glama

Add recipe to cookbook

add_recipe_to_cookbook
Idempotent

Use this when the user wants to file a saved recipe in a cookbook. Adds the recipe to a cookbook the user owns, or creates a new cookbook with the given name first. A recipe can be in several cookbooks.

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": {
      "recipeId": "<recipeId>"
    },
    "name": "add_recipe_to_cookbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
recipeIdYesId of the recipe to add.
cookbookIdNoId of an existing cookbook (from list_cookbooks). Pass this or newCookbookName, not both.
newCookbookNameNoName for a new cookbook to create and add the recipe to. An existing cookbook with the same name is reused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=true and openWorld=false, so the safety profile is covered. The description adds real context beyond that: the tool may create a cookbook as a side effect, and membership is non-exclusive so adding does not displace other cookbooks. It does not say what is returned or what happens on a duplicate add, which the idempotent hint only weakly implies.

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

Conciseness5/5

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

Three short sentences, front-loaded with the usage trigger, then the operation, then the key constraint about multiple memberships. Nothing is padded and no sentence duplicates another.

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

Completeness4/5

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

For a three-parameter mutation with full schema coverage, complete annotations, and no output schema, the description covers trigger, branching behavior, and multiplicity. The remaining gap is the result of the call (e.g. whether the cookbook id is echoed back), which is minor given no output schema exists.

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

Parameters3/5

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

Schema coverage is 100% and each parameter already documents its role, including 'Pass this or newCookbookName, not both' and the reuse rule. The description's 'creates a new cookbook with the given name first' merely restates the newCookbookName semantics, so baseline 3 is appropriate.

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

Purpose4/5

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

The description pairs a specific verb ('file', 'adds') with a specific resource ('a saved recipe in a cookbook') and clarifies the many-to-many nature ('A recipe can be in several cookbooks'). It is immediately distinguishable from remove_recipe_from_cookbook, though it never names that or any other sibling.

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

Usage Guidelines4/5

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

'Use this when the user wants to file a saved recipe in a cookbook' gives a clear triggering condition, and the second sentence explains the create-or-reuse branching. It stops short of stating exclusions or pointing at the counterpart tool for unfiling, and the list_cookbooks pointer lives only in the schema.

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