Skip to main content
Glama

Import menu photos

import_menu
Idempotent

Use this when the user wants a restaurant menu saved to their ChefBear account from photos they provide: to keep it, get it as a structured menu in their language, share it, or open it in the ChefBear app. Creates a private ChefBear menu from 1 to 5 menu photos, given as uploaded files where the app supports file inputs (files) or as public https:// image links (photoUrls). Uses one recognition from the user's ChefBear allowance, so don't call it just to answer a question about a photo already in the conversation unless the user wants it saved. Returns a jobId; recognition usually takes 20 to 60 seconds, then get_import_status returns the menuId. Does not create images or public links.

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": {
      "requestId": "<requestId>"
    },
    "name": "import_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
languageNoLanguage for dish names and descriptions: en, zh-Hans, zh-Hant, es, vi, ko or ja (zh, zh-TW and similar forms also work). When omitted, ChefBear uses the conversation's language if the app reports one of these, else en.
photoUrlsNoPublic https:// links to the menu photos the user provided (JPEG, PNG, WebP, HEIC or AVIF, up to 15 MB each). Plain image addresses only: a link with a ? or # in it is refused.
requestIdYesA new unique ID for this import, such as a UUID. Repeating the same requestId with the same photos returns the same job instead of importing twice.

Output Schema

NameRequiredDescriptionDefault
jobIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / photoUrls / description
      Previous value: -"Public https:// links to the menu photos the user provided (JPEG, PNG, WebP, HEIC or AVIF, up to 15 MB each)."New value: +"Public https:// links to the menu photos the user provided (JPEG, PNG, WebP, HEIC or AVIF, up to 15 MB each). Plain image addresses only: a link with a ? or # in it is refused."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the quota cost ('Uses one recognition from the user's ChefBear allowance'), the output shape (returns jobId, not a menu), expected latency (20 to 60 seconds), and that recognition completes via get_import_status. Privacy ('private ChefBear menu') and the negative scope ('Does not create images or public links') are additional facts not derivable from the annotation hints.

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 and dense with actionable detail, but it is one long run-on paragraph where facts about creation, cost, return value, and latency run together. Minor redundancy: the photo count and file/link modes are stated twice across the description and schema.

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 an asynchronous, quota-consuming mutation, the description supplies everything an agent needs: inputs accepted, cost, latency, the jobId-to-get_import_status handoff, and privacy/scope limits. An output schema exists, and the description still usefully characterizes the immediate return value without over-explaining it.

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?

The schema already documents language codes, URL constraints, and requestId idempotency at 75% coverage, and the description adds the practical decision rule between 'files' and 'photoUrls' ('where the app supports file inputs'), which the schema does not convey. The '1 to 5 photos' restatement duplicates the schema's minItems/maxItems, so it is not purely additive.

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 ('Creates a private ChefBear menu from 1 to 5 menu photos') and names the input source (uploaded files or public https:// links). It also explicitly scopes what it does NOT do ('Does not create images or public links'), which separates it from image-generation or sharing tools in the sibling set.

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?

Opens with an explicit trigger ('Use this when the user wants a restaurant menu saved...'), enumerates the intents that justify it, and gives a clear when-not ('don't call it just to answer a question about a photo already in the conversation unless the user wants it saved'). It also names the follow-up tool get_import_status, so the agent knows the polling path.

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