Skip to main content
Glama

Dayze — Life in Days + Notable People

Update Food (diary patch)

update_food
Idempotent

MUTATES one existing Food Diary row the authenticated user owns. Required: food_id (UUID). Optional patch (same fields as log_food): what, kind, place, merchant, notes, consumed_at / meal_period, amount, currency, paid_by, with / people_names / person_ids. Example: add hot tea onto an existing Salmon Bento → update_food({ food_id, what: "Salmon Bento + hot tea" }). Unknown or other-user food_id returns an error and does not create a row. Syncs the mirrored calendar event and rebuilds life_state. Requires API key or OAuth with scope context. Share tokens cannot write. ($0.10; API key required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
whatNoFull updated dish/drink text (replaces, does not append). Example: Salmon Bento + hot tea
withNoCompanion names, aliases, or ids to add (does not remove existing tags)
notesNoReplaces notes. Empty or null clears
placeNoVenue or location. Empty or null clears
amountNoPrice if mentioned
food_idYesUUID of a food diary row the authenticated user owns
paid_byNoWho paid (name or alias)
currencyNoISO currency, e.g. SGD
merchantNoRestaurant, stall, or shop. Empty or null clears
person_idsNoOwned person UUIDs to tag (user-scoped)
consumed_atNoISO 8601 datetime; wins over meal_period
meal_periodNoSpoken period when consumed_at is omitted, e.g. "late lunch"
people_namesNoAlias for with

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
changedYesChanged fields with before and after values.
food_idYes
event_idYes
food_logYesUpdated Food Diary row.
people_taggedYes
unresolved_peopleYes
life_state_rebuiltYes

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses real side effects: 'Syncs the mirrored calendar event and rebuilds life_state.' It also documents the error condition for unknown or other-user food_id, auth requirements, share-token restriction, and cost. This is valuable behavioral context that annotations do not provide.

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?

The core mutation and required parameter are front-loaded, followed by the patch list, example, side-effects, auth, and cost in a dense but readable format. There is minor redundancy between 'Requires API key or OAuth' and '($0.10; API key required)', but the length is justified for a 14-parameter mutation tool.

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?

Given the tool's complexity, the description covers the required identifier, patch semantics, error behavior, side effects, auth, share-token restriction, and pricing. An output schema exists, so return-value details are not required from the description. An agent has enough information to call update_food correctly and safely.

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 93%, so the schema already documents most parameters. The description adds value by grouping aliases like with / people_names / person_ids and consumed_at / meal_period, and by giving a concrete example of patching only `what` while preserving the rest of the row.

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?

The description opens with 'MUTATES one existing Food Diary row the authenticated user owns', giving a specific verb, resource, and ownership constraint. It clearly differentiates from log_food by emphasizing existing rows and explicitly stating that an unknown or other-user food_id 'does not create a row.'

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

Usage Guidelines4/5

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

It establishes food_id as required and frames all other fields as an 'Optional patch', signaling this is the edit tool rather than a creation tool. It references log_food as the field-source sibling and warns that share tokens cannot write, but it does not explicitly say 'use log_food to create a new row.'

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.

TDQS

B3.3/5.0
Disambiguation3/5

Most tools target distinct resources, but get_context_pack and get_life_context overlap heavily, and get_money_between_people is an intentional duplicate alias of get_person_transactions. The rest are mostly clear due to explicit descriptions.

Naming Consistency4/5

Naming is predominantly verb_noun snake_case with clear families (get_*, log_*, update_*, search_*, notable_*). Minor inconsistencies: create_person breaks the add_inventory_* pattern, and one-off verbs like record_, attach_, merge_ are not part of a uniform scheme.

Tool Count1/5

With 64 tools, this far exceeds the 50+ extreme threshold. The broad personal-life domain justifies many tools, but the count creates significant selection overhead and feels bloated, especially with redundant aliases and overlapping context pack variants.

Completeness4/5

The set covers inventory, CRM, events, food, expenses, travel, places, photos, Gmail, and notable-people lookup with strong read/write/search coverage. Minor gaps include no delete operations for events/people/food (only archive/update) and no explicit place creation.