Skip to main content
Glama

Recalculate Diary Day

recalculate_diary_day
DestructiveIdempotent

Update one diary day's totals and goals with its foods as they are now, the same as refreshing the day in the app. Logged days keep their totals when a food is edited, so this is only for when the user asks for a day to be updated. The result has the day's energy before and after, and any insights the app noted.

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": {
      "date": "<date>",
      "request_id": "<request_id>"
    },
    "name": "recalculate_diary_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day, YYYY-MM-DD.
request_idYesA new unique string for this action. Reuse it only when retrying the same action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description does add real context: it says the recalculation overwrites stored totals and goals with the current foods, and it describes the return payload (energy before/after plus insights). However, it never explains what can be lost (for example, manual adjustments) beyond that, which matters for a tool flagged destructive.

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?

Three sentences, front-loaded with the action, followed by the when-to-use condition and the return shape; every sentence carries information. Slightly wordy ('as its foods are now, the same as refreshing the day in the app') but not padded.

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?

With no output schema, the description compensates by summarizing the return value (energy before and after, insights). For a two-parameter mutation tool it covers purpose, trigger condition, and result, with only minor gaps around failure behavior or effect on manually adjusted totals.

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 coverage is 100%, and both the date format and the request_id retry rule are documented there, so the description does not need to explain the parameters. It adds no extra semantics beyond the schema and is therefore correctly scored at the baseline.

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?

The description gives a specific verb and resource: 'Update one diary day's totals and goals with its foods as they are now,' and anchors it to a familiar behavior ('the same as refreshing the day in the app'). It is unambiguous, but it never names a sibling tool (such as log_food or get_diary) to draw an explicit boundary.

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 states a clear condition: 'Logged days keep their totals when a food is edited, so this is only for when the user asks for a day to be updated.' That effectively tells an agent not to use it after ordinary food edits. It stops short of naming an alternative tool to use instead, but it rules out the most likely misuse.

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