Skip to main content
Glama

Attach instructional photo

attach_instruction_image
Idempotent

Use after a structured recipe is saved and the user asks to attach its photos. Use the returned canonical stage/action ID and latest content revision. Supply a transferable host file descriptor or accessible HTTPS image URL, only with established reuse permission. Do not scrape private chats or claim access to search thumbnails. This saves no new recipe and uses no image-generation credits. Poll get_instruction_image for completion. If transfer is unavailable, offer RecipeBee upload. A failed photo never requires resaving the recipe.

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>",
      "target_type": "<target_type>",
      "target_id": "<target_id>",
      "reuse_permission": "<reuse_permission>"
    },
    "name": "attach_instruction_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
captionNo
alt_textNo
image_urlNo
recipe_idYes
target_idYes
target_typeYes
reuse_permissionYesUse only when the user owns the image or has established permission to save and use it. A search result or attribution alone does not establish permission.
expected_revisionYes

Output Schema

NameRequiredDescriptionDefault
operationYes
persistedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (idempotent, non-destructive, open-world), the description discloses that this creates no new recipe, consumes no image-generation credits, and that a failed attach never requires resaving the recipe – all facts an agent could not derive from the hints. The permission requirement for reuse is reinforced and no claim contradicts idempotentHint or destructiveHint=false.

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?

Roughly nine short sentences, front-loaded with the when-to-use condition and containing no filler; each clause carries a distinct rule. It reads as a checklist rather than prose, which is dense but functional rather than bloated.

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 nested, 9-parameter mutation with an output schema, the description covers workflow entry, required identifiers, permission gating, completion polling, and failure recovery. Return value shape is correctly left to the output schema.

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 only 11% across 9 parameters, so the description has to carry weight – and it does for the critical ones: 'returned canonical stage/action ID' explains target_id, 'latest content revision' explains expected_revision, and 'transferable host file descriptor or accessible HTTPS image URL' explains the file/image_url split. Caption/alt_text and the required-ness of reuse_permission over and above the schema note are left implicit.

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 gives a specific verb and resource – attaching photos to a saved recipe's instruction section or step – and scopes it to a post-save workflow. It does not name the sibling attach_recipe_image, so an agent must infer the distinction (instruction photo vs recipe-level image) from the parameters rather than the text.

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?

Explicit preconditions are stated ('after a structured recipe is saved and the user asks to attach its photos') along with required inputs (canonical stage/action ID, latest revision) and explicit prohibitions (do not scrape private chats, no claiming search thumbnails). It also routes the agent afterward via 'Poll get_instruction_image for completion' and names a fallback when transfer is unavailable.

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.