Skip to main content
Glama
FitDays MCP Server

FitDays MCP Server

get_trend

Read-onlyIdempotent

Calculate weight, body composition, or health metric trends by day, week, or month, returning first/last values, change, min/max/avg, and weekly slope.

Instructions

Read-only. Call check_auth_status first. Metric trend with day/week/month buckets, first/last/change/min/max/avg and slope per week. Metric: weight_kg, weight_lb, bmi, body_fat_pct, body_fat_kg, subcutaneous_fat_pct, visceral_fat, muscle_pct, muscle_mass_kg, skeletal_muscle_pct, skeletal_muscle_kg, bone_mass_kg, body_water_pct, body_water_kg, protein_pct, protein_kg, lean_body_mass_kg, bmr, body_age, body_score, whr, smi, obesity_degree, heart_rate, impedance.

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": {
      "metric": "<metric>"
    },
    "name": "get_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
suidNoProfile id; defaults to the active profile
sinceNoEarliest measured time (RFC3339 or date)
untilNoLatest measured time (RFC3339 or date)
bucketNoBucket: day, week or month (default week)
metricYesMetric to trend (see tool description)
include_deletedNoInclude tombstoned rows (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so 'Read-only' is redundant, but the description adds the auth prerequisite and, importantly, the shape of the computed output (bucketed aggregates plus slope per week) for a tool with no output schema. It does not mention ordering, empty-result behavior, or whether deleted rows affect aggregates beyond the schema flag.

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?

Front-loaded with the operational constraint and behavior, then the aggregation summary, then the metric list. The metric enumeration is long but each entry earns its place because the schema punts on it; the only waste is restating 'Read-only' which annotations already carry.

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 six-parameter read tool with no output schema, the description covers the prerequisite, the computation performed, and the accepted metric values. Remaining gaps are minor: no statement about default date window when since/until are omitted, and nothing about how sparse data affects slope or buckets.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the metric parameter's schema description explicitly defers to the tool description ('see tool description'), and the description supplies the full closed list of 25 accepted metric names. Without that list an agent could not reliably populate the only required parameter, so this is genuine added meaning.

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?

States a specific verb and resource: computes a metric trend with day/week/month buckets plus first/last/change/min/max/avg and slope. That is more precise than a sibling like get_weight_history, though the description never names an alternative to differentiate itself explicitly.

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?

Gives one concrete prerequisite ('Call check_auth_status first') and implies usage through the bucket/statistics framing. It does not say when to prefer this over get_weight_history, get_body_composition_summary, or compare_measurements, so the agent must infer the boundary.

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