Skip to main content
Glama

Read a meal photo

read_meal_photo
Destructive

Use this when the person attaches a photo of food they ate or will eat. Returns estimated foods, grams, calories and macros for a plate, nutrition per 100 g for a packet, or grams for a kitchen scale. Processing uses one read from their daily food-photo allowance. Review the estimates and corrections with them before logging separately with log_foods or Log it on the card. Do not use for a photo that isn't food, or to judge anyone's body.

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": {
      "photo": "<photo>"
    },
    "name": "read_meal_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoAnything they said about it ("half the rice", "oat flat white").
photoYesThe photo they attached.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / photo / properties / download_url / description
      Added value: +"Where to fetch the photo; the app fills it in."
    • addedInput schema / properties / photo / properties / file_id / description
      Added value: +"The app's id for the photo."
    • addedInput schema / properties / photo / properties / file_name / description
      Added value: +"The photo's file name."
    • changedInput schema / properties / photo / properties / file_name / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • addedInput schema / properties / photo / properties / mime_type / description
      Added value: +"The photo's type, such as image/jpeg."
    • changedInput schema / properties / photo / properties / mime_type / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations flag readOnlyHint=false, destructiveHint=true, openWorldHint=true and non-idempotent, which is counterintuitive for a 'read' tool; the description usefully explains the real cost (one read from a daily food-photo allowance) and that it should not be treated as the logging step itself. It does not explain why the call is destructive or whether repeated calls burn additional allowance, so it stops short of full disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the trigger condition, then output shape, then cost, then the review-then-log workflow, then the guardrail. Each sentence contributes a distinct, actionable fact with no repetition.

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?

With an output schema present the description need not detail return values, and it still sketches expected result shapes. Cost, workflow ordering, sibling hand-off and exclusions are all covered, leaving nothing an agent needs missing for a two-parameter tool.

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 100%, including a fully documented nested photo object, so the schema already carries parameter meaning. The description adds contextual framing (plate vs packet vs kitchen scale) but says nothing about the optional 'note' field's role, leaving the baseline 3 appropriate.

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?

Description names a specific action (reading an attached food photo) and enumerates the shapes of output it produces: foods/grams/calories/macros for a plate, per-100g nutrition for a packet, grams for a scale. It also explicitly separates itself from log_foods, so an agent can place it against siblings without opening a schema.

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?

Gives an explicit trigger ('when the person attaches a photo of food they ate or will eat'), an explicit exclusion ('Do not use for a photo that isn't food'), a workflow step (review estimates with the person, then log separately with log_foods or the card), and a cost note. Both when and when-not are covered.

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.