Skip to main content
Glama

Get nutrition trend

get_nutrition_trend
Read-onlyIdempotent

Per-day calorie and macro totals for a range (default last 7 days), including days with no entries, plus averages over logged days.

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_nutrition_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNoCalendar date YYYY-MM-DD in the user's timezone
start_dateNoCalendar date YYYY-MM-DD in the user's timezone

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description still adds real behavioral context the annotations cannot: days without entries are still returned (zero-filled rows rather than omissions) and averages are computed only over logged days, which is a denominator nuance that changes interpretation of results.

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?

A single dense sentence with the resource and default window front-loaded and the two non-obvious output behaviors appended. No filler, no restatement of the title.

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?

For a two-parameter read-only tool with no output schema, the description successfully sketches the return shape (per-day rows, zero-filled days, averages over logged days). What remains unstated is edge behavior such as start/end inclusivity and whether one-sided ranges are honored, plus the field-level macro breakdown, but these are minor for a simple aggregation call.

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 already documents the YYYY-MM-DD pattern and the user's-timezone semantics for both dates, so the baseline is 3. The description adds information not in the schema: that omitting both dates yields the last 7 days, which is meaningful since neither parameter is required. It does not state range inclusivity or what happens when only one bound is supplied.

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 names the exact resource and shape ('per-day calorie and macro totals for a range'), its default window, and the zero-fill plus averaging behavior. It is specific enough to separate a trend query from a single daily summary, though it never names a sibling tool to contrast against.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'for a range (default last 7 days)' signals this is for multi-day trend analysis rather than a single-day snapshot, and the zero-required-params default tells the agent it can be called bare. There is no explicit when-to-use, when-not-to-use, or named alternative among the sibling tools.

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