Skip to main content
Glama

Prepare portion observation

prepare_record_portion

Stage a serving observation for a meal key and update its learned portion profile, so future serving estimates reflect what was actually eaten.

Instructions

Stage recording a serving observation and updating the learned portion profile for a meal key.

Input Schema

NameRequiredDescriptionDefault
sourceNo
meal_keyYes
servingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false). The description adds one piece of real behavioral value beyond that: the call updates a persistent 'learned portion profile', so the write is not confined to the observation itself. It still omits what the staging lifecycle does and what the write interacts with.

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?

A single tight sentence with the staged-operation framing and the resource up front and no filler. It is efficient, though the terseness trades away structural cues (lifecycle, parameter roles) that would help an agent.

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

Completeness2/5

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

For a non-idempotent mutation with three parameters at 0% schema documentation and no output schema, the description is thin. It does not explain the staged/confirm lifecycle, does not document the source enum's meaning, and does not state the prerequisites or the effect on an existing portion profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it only echoes two of the three parameters obliquely ('serving observation'→servings, 'meal key'→meal_key). The most semantically loaded parameter, the source enum (explicit / correction / consumption), is never mentioned, so an agent gets no guidance on which value to choose or when.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('stage recording') plus two concrete resources: a serving observation and the learned portion profile, scoped by a meal key. It is clearly distinguishable from read-side siblings like get_profile, but it does not differentiate itself from the closest sibling, prepare_log_meal_request_serving, which plausibly overlaps.

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

Usage Guidelines2/5

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

No when-to-use, when-not-to-use, or alternative guidance is given. The word 'Stage' hints at a two-phase flow but the description never says the staged action must be committed via confirm_action or abandoned via cancel_action, both of which are present as siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools