Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Import a recipe from a photo

import_recipe_from_image

Imports a recipe from a photo (cookbook page, screenshot or handwritten card) given a fetchable http(s) imageUrl, restructures it to Chop it's recipe standard and saves it to the user's library. A needs_review result carries a preview and the issues found, for correction with save_recipe. If the image can't be fetched, the recipe text can be imported as a caption with import_recipe_from_url. Imports that need paid processing require confirmPaidImport after the user agrees. Limited per conversation. Requires a linked Chop it account.

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": {
      "imageUrl": "<imageUrl>"
    },
    "name": "import_recipe_from_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionNoOptional extra context, e.g. the dish name or text the photo cuts off.
imageUrlYeshttp(s) URL of a photo of the recipe — a cookbook page, screenshot, or handwritten card. Must be a fetchable link; if the fetch fails, fall back to import_recipe_from_url with the recipe text as caption.
requestIdNoGenerate a unique ID before starting a new import. Reuse it until that import completes, including confirmation and recovery; a later new import needs a new ID.
confirmPaidImportNoTrue only after the user explicitly approves 1 credit once the 10 free weekly imports are exhausted.

Output Schema

NameRequiredDescriptionDefault
titleNo
appUrlNo
statusYes
keepUrlNo
messageYes
recipeIdNo
failedRulesNo
recipePreviewNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, open-world, non-idempotent but non-destructive write. The description adds real context beyond that: a needs_review result carries a preview plus the issues found, imports may require confirmPaidImport after explicit user approval, usage is limited per conversation, and a linked account is required. It stops short of describing the success-path return shape, though the presence of an output schema makes that acceptable.

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 core action and input, then alternatives, then prerequisites in descending order of importance. It is dense with several clauses per sentence, but none of the sentences are filler or restatements of the tool name.

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 write operation with four parameters, an output schema, and rich annotations, the description covers the input contract, the failure and review paths, the paid-confirmation flow, and account and rate prerequisites. An agent has everything needed to decide whether to call it and how to react to its outcomes.

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 100%, so all four parameters are already documented. The description still adds workflow meaning the schema cannot: that confirmPaidImport is only set after the user agrees to spend a credit, and that the imageUrl must be fetchable with a defined fallback path when it is not.

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?

A specific verb-plus-resource ('Imports a recipe from a photo') with an explicit input modality ('given a fetchable http(s) imageUrl') and a defined destination ('saves it to the user's library'). It is clearly distinguishable from import_recipe_from_url, which it positions as the text-only fallback.

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 names concrete accepted image types (cookbook page, screenshot, handwritten card), routes failures to import_recipe_from_url with the recipe text as caption, and routes needs_review outcomes to save_recipe for correction. The prerequisites (linked account, per-conversation limit, paid confirmation) are stated as conditions rather than left implicit.

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