Skip to main content
Glama

Calories & Recipes | Nutrista

Food diary statistics

get_diary_stats
Read-onlyIdempotent

Use this when the user asks how they ate over a period: calories and macros per day, averages, results against their goals, or the foods they log most often. Reads only the totals of the user's Nutrista food diary and shows a chart.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_diary_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
languageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: it reads only aggregated totals rather than raw entries, and it renders a chart. It doesn't disclose how the date range is bounded or what happens when the range is empty, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both earning their place: the first front-loads the trigger and the metrics, the second states the read scope and the chart output. No filler or repetition of the title.

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

Completeness3/5

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

There is no output schema, and the description compensates by listing the metrics and mentioning the chart. However, for a tool with three fully undocumented parameters and no required fields, the definition leaves the agent guessing about date-range defaults and the language parameter, which is a meaningful gap for a stats tool.

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% for three parameters (from, to, language), and the description never mentions them — not the date format, not the default period when the range is omitted (zero required parameters), not the language field's effect. 'Over a period' is the only hint at the date range, leaving the agent to infer parameter meaning from the schema alone.

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 names a specific verb and resource — reading aggregated food diary statistics — and enumerates the exact metrics returned (calories and macros per day, averages, goal results, most-logged foods). This is clearly distinct from the sibling logging, search, and recipe tools without needing to name them.

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 gives an explicit trigger condition: 'Use this when the user asks how they ate over a period.' That is strong when-to-use guidance. It does not state when-not to use it or point to an alternative for related questions (e.g., retrieving a single food), so it stops short of full routing guidance.

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