Skip to main content
Glama

fitbit_trends

Analyze trends in cached Fitbit data to compute averages and totals over weekly, monthly, or quarterly periods. Compare two periods to identify changes in activity, sleep, heart rate, and more.

Instructions

Analyse trends in cached Fitbit data.

Computes averages and totals over time from the local cache, auto-syncing if stale.

Args: data_type: What to analyse. Options: "heart_rate", "activity", "exercises", "sleep", "weight", "spo2", "hrv", "azm", "breathing_rate", "skin_temperature", "core_temperature", "cardio_fitness", "food_log". Default: "activity". period: Aggregation period. Options: "weekly", "monthly", "quarterly". Default: "monthly". start_date: Start date as "YYYY-MM-DD" or "365d". Default: last 12 months. end_date: End date as "YYYY-MM-DD". Default: today. compare: Compare two periods. Format: "last_30d vs previous_30d", "2026-03 vs 2026-02", "2026-Q1 vs 2025-Q4". When set, period/start_date/end_date are ignored.

Returns aggregated averages per period. For activity: steps, distance, active minutes. For exercises: sessions, duration, calories. For sleep: duration, efficiency, stage breakdown. For heart_rate: resting HR min/avg/max. For weight: weight, fat%, BMI. For spo2: avg/min/max oxygen saturation. For hrv: daily and deep RMSSD. Not for raw data - use fitbit_get_* tools instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNomonthly
compareNo
end_dateNo
data_typeNoactivity
start_dateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations available, the description carries the full burden of behavioral disclosure. It discloses that the tool auto-syncs from the local cache if stale, implying potential network or cache side effects. It also details return values per data type and notes that compare ignores other date parameters. It lacks error-handling or permission details, but overall it is transparent.

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 longer than a typical two-sentence summary but is well-structured with a one-line overview, an Args section, a Returns section, and a final note. Every sentence adds value, especially the detailed parameter options and per-data-type outputs. It is front-loaded with the core purpose and uses clear formatting, though it could be slightly tightened.

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 tool with 5 optional parameters, a complex compare feature, and 13 data types with varied output fields, the description covers parameter semantics, return values, and cache-sync behavior. It even provides examples for compare and date formats. It omits edge cases like invalid dates or empty data, but the presence of an output schema and the description's thoroughness make it sufficiently complete.

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?

The input schema provides zero parameter descriptions (0% coverage), so the description's 'Args' section is essential and fully compensates. It defines data_type and period options with defaults, start/end date formats, and the compare format with examples. Every parameter is semantically described, including the behavior that compare overrides others.

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 opens with a specific verb and resource, 'Analyse trends in cached Fitbit data,' then elaborates on computing averages and totals over time. It clearly distinguishes itself from sibling fitbit_get_* tools by explicitly stating it is not for raw data and by listing supported data types. This makes its purpose unambiguous.

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?

The description provides clear guidance on when to use the tool for aggregated trends and explicitly notes 'Not for raw data - use fitbit_get_* tools instead,' naming the alternative. It also explains the compare feature and how it overrides period/start_date/end_date, giving users context. However, it stops short of describing specific scenarios beyond the raw-data exclusion, so it is not a full 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/partymola/fitbit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server