Skip to main content
Glama
FitDays MCP Server

FitDays MCP Server

get_nutrition_history

Read-onlyIdempotent

Retrieve food diary nutrition history with calories and macros, plus day, week, or month totals, to analyze intake over a profile and date range.

Instructions

Read-only. Call check_auth_status first. FitDays 2.0 food diary rows with calories and macros plus day/week/month totals; nutrients are scaled by the logged grams from per-100g food values.

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

Input Schema

NameRequiredDescriptionDefault
suidNoProfile id; defaults to the active profile
limitNoMaximum rows, default 100, max 1000
sinceNoEarliest intake time (RFC3339 or date)
untilNoLatest intake time (RFC3339 or date)
bucketNoAggregation bucket: day, week or month (default day)
offsetNoRows to skip

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuinely new context: the auth prerequisite and the fact that nutrients are rescaled from per-100g values by logged grams, which materially affects how an agent should interpret the returned numbers. It does not describe pagination behavior or error cases, keeping it out of the top tier.

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?

Two compact sentences that front-load the safety and auth constraint before the substance. 'Read-only' largely duplicates the readOnlyHint annotation, a small redundancy, but the rest of the text is dense and earns its place.

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 six parameters, no required fields, and no output schema, the description does its job by describing the shape of the return (rows plus totals) and the aggregation dimension. The main remaining gap is that it does not enumerate the row fields or explain behavior when no rows match, but nothing essential for a correct call is missing.

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 description coverage is 100%, so the schema already explains suid, limit, since, until, bucket, and offset including defaults and bounds. The description mentions day/week/month totals and intake-time scoping only in passing and adds no parameter syntax or edge-case detail beyond the schema. Baseline 3 applies when the schema carries this weight.

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 a precise resource and content: 'FitDays 2.0 food diary rows with calories and macros plus day/week/month totals.' This is clearly a distinct data domain from the water, weight, and auxiliary history siblings. It stops short of explicitly contrasting itself with the closest sibling alternative, but the resource specificity is strong.

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?

It supplies one concrete prerequisite, 'Call check_auth_status first,' which usefully gates invocation. It gives no guidance on when to choose this over get_trend or get_auxiliary_history for aggregate or non-food data, and no when-not-to-use conditions, so the routing guidance is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.