Skip to main content
Glama

Generate recipe image

generate_recipe_image
Destructive

Request RecipeBee image generation for an existing private recipe. Generation may reserve existing RecipeBee image credits or consume a free-tier image allowance. When the client declares form-elicitation support, the server requires an accepted signed confirmation form bound to this recipe and these image options; image_generation_confirmed is ignored. When the client does not declare form-elicitation support, omit image_generation_confirmed until the user explicitly accepts, then set it to true on one retry. This tool never purchases credits or starts checkout; if the existing entitlement is unavailable, report the failure without directing the user to a purchase flow. Do not use for an image already generated or uploaded in this conversation. mode=add retains the current primary image. mode=replace changes which retained image is primary but does not delete the previous image; use it only after the user explicitly requests replacement.

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>"
    },
    "name": "generate_recipe_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoadd
seedNo
styleNo
aspectNo
recipe_idYes
custom_promptNo
image_generation_confirmedNoFor clients that do not declare form-elicitation support: set to true only after explaining possible credit or free-allowance use and receiving the user's explicit acceptance. Clients that declare form support collect consent in a signed form and ignore this value.

Output Schema

NameRequiredDescriptionDefault
imageYes
recipeNo
is_publicYes
persistedYes
recipe_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • changedInput schema / properties / image_generation_confirmed / description
      Previous value: -"For pre-2026 MCP clients only: set to true after explaining possible credit or free-allowance use and receiving the user’s explicit acceptance. Protocol 2026-07-28 ignores this value and collects consent in a signed confirmation form."New value: +"For clients that do not declare form-elicitation support: set to true only after explaining possible credit or free-allowance use and receiving the user's explicit acceptance. Clients that declare form support collect consent in a signed form and ignore this value."
    • removedOutput schema / properties / image / properties / aspect_ratio / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / aspect_ratio / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / image / properties / error / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / error / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / image / properties / generated_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / generated_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / image / properties / job_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / job_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / image / properties / media_asset_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / media_asset_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / image / properties / prompt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / prompt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / image / properties / style_preset / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / image / properties / style_preset / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses credit/allowance consumption, the signed-confirmation consent requirement, and an explicit boundary that the tool never purchases credits or starts checkout. It also clarifies a nuance the destructiveHint does not convey: mode=replace does not delete the previous image, only changes which retained image is primary.

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?

The purpose is front-loaded, then consent mechanics, then the no-purchase boundary, then mode semantics — a logical order. The prose is dense with rule clauses and could be tightened with bullet-like separation, but almost no sentence is filler.

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 mutation tool with an output schema, the description covers the risky parts an agent needs: consent flow, credit implications, retry protocol, and replacement semantics. The remaining gap is creative-option meaning (style, aspect, seed, custom_prompt) and what a failure looks like beyond 'report the failure.'

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 description coverage is only 14%, so the description has to carry the load, and it does so well for mode and image_generation_confirmed. However, style, aspect, seed, and custom_prompt receive no explanation at all, leaving four of seven parameters to the bare enum names and formats.

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 first sentence states a specific verb and resource ('Request RecipeBee image generation for an existing private recipe') and scopes it to private recipes. It implicitly carves out the attach path with 'Do not use for an image already generated or uploaded in this conversation,' though no sibling tool is named outright.

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?

It gives explicit branching guidance: one path when the client declares form-elicitation support, another when it does not ('omit image_generation_confirmed until the user explicitly accepts, then set it to true on one retry'). It also states a negative case (never for an already-generated or uploaded image) and gates mode=replace behind an explicit user request.

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.