Skip to main content
Glama

Attach MCP client image

attach_recipe_image

Use when the user wants to attach an image generated or uploaded in the current MCP client conversation to an existing private RecipeBee recipe. Prefer the Apps SDK file input when MCP client supplies file with download_url and file_id. Use image_url only for a URL selected or uploaded in the RecipeBee widget. If neither file nor image_url is available, return a pending selection and do not claim attachment. The widget picker is a fallback because native generated images may not be available in MCP client Files. Report attachment only after persisted=true and needs_image_selection=false. mode=replace changes which retained image is primary but does not delete the previous image; use it only after the user explicitly requests replacement. Do not use for a new RecipeBee-generated image.

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": "attach_recipe_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
modeNoadd
image_urlNo
recipe_idYes

Output Schema

NameRequiredDescriptionDefault
imageYes
recipeNo
duplicateYes
is_publicYes
persistedYes
recipe_idYes
needs_image_selectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • 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.8/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, openWorld=true; the description adds real behavioral context beyond that — that mode=replace changes the primary retained image without deleting the previous one (consistent with destructiveHint=false), that a pending-selection outcome is possible, and that attachment must only be reported when persisted=true and needs_image_selection=false. This is the kind of state-machine and success-condition detail an agent cannot infer from structured fields.

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?

It is front-loaded with a 'Use when' trigger and every sentence adds a rule rather than restating the name. It is dense and term-heavy (Apps SDK, widget picker, needs_image_selection) but not padded; minor redundancy exists between the 'pending selection' and 'report attachment only after' sentences.

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 four-parameter mutation tool with nested objects and no schema descriptions, the description covers source selection, fallback behavior, replacement semantics, the success condition, and the exclusion case, and an output schema already documents return shape. Little an agent needs in order to invoke it correctly is missing.

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 description coverage is 0%, so the description carries the burden: it explains the file-vs-image_url distinction, the source of each, and the add/replace meaning of mode, which is genuine meaning beyond the bare schema. It does not touch the nested file fields (file_id, file_name, mime_type) or clarify recipe_id beyond 'existing private recipe,' leaving some parameters to inference.

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?

The description opens with a specific verb and resource ('attach an image ... to an existing private RecipeBee recipe') and scopes the source to 'generated or uploaded in the current MCP client conversation.' It explicitly excludes a related case ('Do not use for a new RecipeBee-generated image'), which separates it from generate_recipe_image and the sibling attach_instruction_image.

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 states when to use each input path: prefer the Apps SDK file input when file with download_url and file_id is supplied, use image_url only for URLs selected/uploaded in the RecipeBee widget, and fall back to a pending selection if neither exists. It also gates mode=replace on an explicit user request for replacement, and names the out-of-scope case. That is close to a complete routing rule set.

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.