Skip to main content
Glama

Preview recipe

preview_recipe
Read-onlyIdempotent

Use when the user asks to preview or review a complete recipe without saving it. Include realistic integer prep_time_minutes, cook_time_minutes, and total_time_minutes values in every complete recipe. Estimate them when the user does not specify times; use 0 only when that part genuinely takes no time. For recipes with components or cooking stages, provide content sections and omit flat ingredients and steps. Validate and render the recipe without persistence. Do not call as an intermediate step when the user has already explicitly asked to save.

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": {
      "title": "<title>",
      "prep_time_minutes": "<prep_time_minutes>",
      "cook_time_minutes": "<cook_time_minutes>",
      "total_time_minutes": "<total_time_minutes>"
    },
    "name": "preview_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
notesNo
stepsNo
titleYes
contentNoFor multi-component recipes, provide ingredient and instruction sections here and omit flat ingredients and steps.
summaryNo
servingsNo
ingredientsNo
cook_time_minutesYesEstimated cooking time in minutes. Use 0 only when no cooking is needed.
prep_time_minutesYesEstimated preparation time in minutes. Use 0 only when no preparation is needed.
total_time_minutesYesTotal elapsed time in minutes. Keep this consistent with the preparation and cooking steps.

Output Schema

NameRequiredDescriptionDefault
recipeYes
is_publicYes
persistedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / ingredients / items / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 500,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "group": {
      -        "anyOf": [
      -          {
      -            "maxLength": 120,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "name": {
      -        "maxLength": 500,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "optional": {
      -        "type": "boolean"
      -      },
      -      "preparation": {
      -        "anyOf": [
      -          {
      -            "maxLength": 500,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "quantity": {
      -        "anyOf": [
      -          {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ]
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "unit": {
      -        "anyOf": [
      -          {
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "name"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "group": {
      +        "anyOf": [
      +          {
      +            "maxLength": 120,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "name": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "optional": {
      +        "type": "boolean"
      +      },
      +      "preparation": {
      +        "anyOf": [
      +          {
      +            "maxLength": 500,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "quantity": {
      +        "type": [
      +          "string",
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "unit": {
      +        "anyOf": [
      +          {
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / recipe / properties / ingredients / items / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 500,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "group": {
      -        "anyOf": [
      -          {
      -            "maxLength": 120,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "name": {
      -        "maxLength": 500,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "optional": {
      -        "type": "boolean"
      -      },
      -      "preparation": {
      -        "anyOf": [
      -          {
      -            "maxLength": 500,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "quantity": {
      -        "anyOf": [
      -          {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ]
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "unit": {
      -        "anyOf": [
      -          {
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "name"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "group": {
      +        "anyOf": [
      +          {
      +            "maxLength": 120,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "name": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "optional": {
      +        "type": "boolean"
      +      },
      +      "preparation": {
      +        "anyOf": [
      +          {
      +            "maxLength": 500,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "quantity": {
      +        "type": [
      +          "string",
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "unit": {
      +        "anyOf": [
      +          {
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered; the description usefully confirms validation happens and nothing is persisted. It does not say what a failed validation returns or how rendering is presented, which leaves real behavioral questions open for a tool whose whole job is previewing.

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 usage trigger, then time rules, then structural rules, then the persistence clarification — a logical order with no filler. A few sentences restate guidance already present in the schema's own descriptions (time field descriptions, content field description), which is the only waste.

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 deeply nested 11-parameter tool, the description covers the highest-risk decisions: time estimation, sections-vs-flat shape, and non-persistence. An output schema exists so return values need not be explained, but the description never bounds what a 'complete recipe' requires beyond the schema's required list.

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 only 36%, so the description has to carry weight, and it does add real meaning: estimate times when unspecified, use 0 only when the stage genuinely takes no time, keep total consistent, and choose sections over flat ingredients/steps for multi-stage recipes. Half the parameters (tags, notes, summary, servings, title) get no guidance, which keeps it below a 5.

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 and resource ('preview or review a complete recipe') plus the defining scope constraint ('without saving it'). Combined with 'Validate and render the recipe without persistence', an agent can immediately distinguish this from the save_recipe/save_recipe_with_image siblings.

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 names the triggering user request ('preview or review') and an explicit exclusion ('Do not call as an intermediate step when the user has already explicitly asked to save'), which routes the agent to the save path instead. The only minor gap is that the save alternative is described functionally rather than by tool name.

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.