Skip to main content
Glama

Read daily totals

list_day_totals
Read-only

Read what each day adds up to, worked out by Splot: for each local day from from to to (inclusive, up to 92 days), the meals logged and their nutrition added up, the workouts done, the day's mark from list_days and the targets that applied that day. Use this rather than your own sums of list_meals whenever the person asks how a day, a week or a month went, or how they are doing against their targets. A day not listed has nothing logged, which is not a day without food. complete false means a food's value for that nutrient is unknown, so the total is a lower bound, and so is every total of a partial day. average leaves out partial days and days without meals; its days says how many it covers. Planned meals are not counted.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "list_day_totals"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe last local date, inclusive
fromYesThe first local date, inclusive

Output Schema

NameRequiredDescriptionDefault
daysYes
averageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint true, destructiveHint false and openWorldHint false, so the safety profile is covered. The description adds real value beyond that, however: a 92-day range cap, the meaning of complete=false as a lower bound, average excluding partial and meal-less days, and that an absent day means nothing logged rather than no food. That is rich behavioral context, but the score stays moderate because much of it concerns return-value semantics, which the output schema already partly carries.

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 description is front-loaded: purpose, then usage, then caveats. Every sentence carries information, but the second sentence chains four caveats with semicolons and is dense enough to be slightly hard to scan, so it is not flawless.

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?

Complete for a two-parameter read tool. An output schema exists, so return shape needn't be spelled out, yet the description explains the subtle parts an agent needs: absence semantics, lower-bound totals, and what average covers.

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%, and both parameters describe themselves as inclusive local dates, so the baseline is 3. The description earns extra credit by adding a constraint not in the schema, the 'up to 92 days' maximum range, which materially affects how an agent calls it.

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 ('read what each day adds up to, worked out by Splot') and enumerates what the result contains: meals and nutrition, workouts, the day's mark from list_days, and targets. It clearly distinguishes itself from list_meals, whose sums an agent might otherwise compute itself.

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 when-to-use rule ('whenever the person asks how a day, a week or a month went, or how they are doing against their targets') and names the alternative it replaces ('your own sums of list_meals'). It also states a scope exclusion: planned meals are not counted.

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