Skip to main content
Glama

Edamam

Analyze Food Image

analyze_food_image

Identify food in a photograph and return a full nutritional breakdown.

Uses Edamam's AI Vision API (beta) to detect each dish on the plate, estimate its ingredients, and calculate nutrition. Every dish is analyzed independently, so multi-dish plates return one entry per dish. Works best with clear, well-lit photos.

The image is supplied as base64-encoded bytes (the API accepts only a raw image upload, not a URL), most conveniently as a data URI: "data:image/jpeg;base64,...". A caller with a remote URL must download the image itself and base64-encode the bytes.

To look up nutrition from a text description instead, use get_food_nutrition.

Input Schema

NameRequiredDescriptionDefault
imageYesA base64 data URI (e.g. "data:image/jpeg;base64,...") — or a bare base64 string — of a food photograph.

Output Schema

NameRequiredDescriptionDefault
dishesYesOne nutrition summary per detected dish; a single-dish photo yields a one-element list, a multi-dish plate yields several.

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?

With no annotations, the description carries the load and does so well: it names the backing service and its beta status, explains per-dish independent analysis so multi-dish plates return multiple entries, and states the API accepts only raw image upload, not URLs. It omits operational behavior such as latency, failure modes, or rate limits, which keeps it from a 5.

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 purpose, then behavior, then input mechanics, then the sibling routing — a sensible order. The data URI example is repeated in both the description and the schema, a minor redundancy that costs it a point.

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 single-parameter tool with an output schema, the description covers everything an agent needs: what it does, what input form is required, how multi-dish results are structured, and when to pick the alternative. Return-value details are 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 coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: a remote URL must be downloaded and re-encoded by the caller, and the bare-base64 alternative is spelled out. It stops short of naming accepted image formats or size limits.

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 ("Identify food in a photograph and return a full nutritional breakdown") and immediately names the sibling it is not (get_food_nutrition). An agent can distinguish image-based analysis from text lookup without opening either 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 routing rule: use get_food_nutrition when starting from a text description, and this tool when starting from a photo. It also adds an applicability condition ("Works best with clear, well-lit photos") that tells the agent when results may degrade.

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