Skip to main content
Glama

vision

Meal Vision

meal_vision
Idempotent

Analyze a meal photo to itemized nutrition JSON: dishes, portions, kcal, macros with per-item confidence, reference-object scale calibration, scene-complexity detection, a disclosed calibrated kcal range, PFC balance ratios and alcohol-aware 4/4/9 cross-checks. Calibrated on 30 weighed meals (range contained truth in 26/30). Every call is a 3-run consensus with disclosed spread + item agreement. $0.05/image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintsNocuisine/context hint, e.g. 'Japanese teishoku, small diet portions' - measurably improves accuracy on regional home-style meals
image_urlNoAbsolute http(s) URL of the image (JPEG/PNG/WebP)
pack_codeNoretry credit issued after an unbilled failed call (replaces payment)
x_paymentNoOptional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged.
image_base64NoBase64-encoded image bytes (alternative to image_url)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON body of the underlying call (see /samples/{product} for each product's shape)
statusYesHTTP status of the underlying call (200 result, 402 payment terms, 4xx input error)
how_to_payNo
receipt_idNoset on paid results; free re-fetch via get_receipt
payment_requiredNotrue when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile, and the description adds genuinely useful behavior the annotations cannot convey: every call is a 3-run consensus with disclosed spread and item agreement, the calibrated range contained truth in 26/30 weighed meals, and the cost is $0.05/image. Missing is any statement of what happens on failure/retry beyond the pack_code note in the schema.

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 purpose in the first clause, followed by output contents, calibration evidence, consensus behavior and price. Three of the five sentences earn their place; the dense feature list ('PFC balance ratios and alcohol-aware 4/4/9 cross-checks') drifts toward marketing padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape need not be re-explained, and the description still covers cost, consensus methodology and calibration honesty. The main gap is routing guidance relative to the many sibling extraction/OCR tools, which is not addressed at all.

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%, so the five parameters (hints, image_url, image_base64, x_payment, pack_code) are already fully documented in the schema. The description adds almost no parameter-level meaning beyond echoing that nutrition output is produced, so the baseline 3 applies.

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 ('Analyze a meal photo to itemized nutrition JSON') plus an enumerated scope of outputs (dishes, portions, kcal, macros, confidence). That is clearly distinguishable from siblings like ocr_image, portrait_analysis and document_pipeline without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied through the output description and the hints note ('measurably improves accuracy on regional home-style meals'). It never says when to pick this over ocr_image or structured_extract, and gives no exclusions or prerequisites beyond the payment mechanics that live in the schema.

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