Skip to main content
Glama

query_daily_activity

Read-onlyIdempotent

Read cached daily activity totals—steps, distance, calories, floors, active minutes—for one date or an inclusive range, with data quality warnings and pagination.

Instructions

Choose this for a multi-column daily activity table, not a single-metric trend. Read daily activity totals: steps, distance_m, active_kcal, total_kcal, floors and active_minutes, plus data_quality. Supply date for one day or both start_date/end_date for an inclusive YYYY-MM-DD range; date takes precedence if both forms are given. Returns data.summaries and data.data_quality. Missing optional upstream metrics may appear as zero with quality warnings; do not treat them as confirmed measurements. For one metric across days/weeks/months use query_metric_series; sleep and workouts have separate tools. Read-only local SQLite query; no cloud request or automatic sync. Requires a configured local account/cache. Returns JSON text with status, source=cache, generated_at and data; empty lists mean no cached matches, not zero measurements. Use get_data_coverage to inspect availability or sync_data to refresh with user consent. Returns data.pagination {limit, offset, has_more, next_offset}; next_offset is null at the end. Keep filters unchanged and avoid syncing between pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoSingle calendar date YYYY-MM-DD, inclusive; overrides start_date and end_date when supplied.
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
end_dateNoInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateNoInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.4

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover safety profile (readOnly, idempotent, non-destructive, not open-world), but the description adds substantial behavioral detail beyond that: zero values may mask missing data with quality warnings, empty lists mean no cached matches not zero measurements, pagination semantics, date precedence rule, no cloud request or sync, requires configured local cache, and warning not to sync between pages. Rich and specific.

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

Conciseness3/5

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

Information-dense but somewhat sprawling: mixes routing rules, field lists, parameter rules, behavioral warnings, error semantics, and pagination advice across many semicolon-linked clauses. Front-loads the key distinction well, but could be tighter.

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

Completeness5/5

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

Complete for a read-only paginated query with no output schema: return structure is described (data.summaries, data.data_quality, pagination shape), empty-result semantics are explained, sourcing (local cache vs cloud) is stated, and sibling alternatives are named. An agent has everything needed to call correctly.

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 parameters (date, start_date, end_date, limit, offset) are fully documented in the schema itself. The description's parameter guidance (date precedence, inclusive range, pagination next_offset behavior) is useful but substantially overlaps with schema descriptions, warranting baseline 3.

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?

Explicitly states it returns a multi-column daily activity table with named metrics (steps, distance_m, active_kcal, total_kcal, floors, active_minutes, data_quality). Directly distinguishes itself from query_metric_series ('not a single-metric trend') and notes sleep/workouts have separate tools.

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

Usage Guidelines5/5

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

Multiple explicit routing rules: choose this for daily activity table not single-metric trend, use query_metric_series for one metric across days/weeks/months, sleep and workouts have their own tools, use get_data_coverage to inspect availability, use sync_data to refresh. Covers when to use and when not to.

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