Skip to main content
Glama
Open Wearables

Open Wearables

Official

get_timeseries

Retrieve granular wearable time-series samples for a user within a time range to analyze metrics like weight, SpO2, glucose, HRV, or finer-grained data than daily summaries.

Instructions

Get granular time-series samples for a user within a time range.

Time-series data is the raw/downsampled sample stream underlying the higher-level summaries (activity, sleep, workouts). Use this tool when the user asks about a metric that does NOT have a dedicated summary tool (e.g. weight, SpO2, blood glucose, respiratory rate, HRV), or when they need finer-grained data than daily averages.

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": {
      "user_id": "<user_id>",
      "start_time": "<start_time>",
      "end_time": "<end_time>",
      "types": "<types>"
    },
    "name": "get_timeseries"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesYesList of SeriesType codes to include. Common values: - "heart_rate", "resting_heart_rate", "walking_heart_rate" - "heart_rate_variability_sdnn", "heart_rate_variability_rmssd" - "oxygen_saturation", "respiratory_rate" - "blood_glucose", "blood_pressure_systolic", "blood_pressure_diastolic" - "weight", "body_fat_percentage", "body_mass_index" - "steps", "active_energy", "basal_energy", "distance"
user_idYesUUID of the user. Use get_users to discover available users.
end_timeYesEnd of the window in ISO-8601 format. Example: "2026-04-05T23:59:59Z"
resolutionNoOne of "raw", "1min", "5min", "15min", "1hour", "1day", "1week", "1month". Default "raw" returns every sample as stored; minute and hour resolutions downsample server-side; "1day", "1week" and "1month" return one value per local day, week or month, the provider's own day value where it sent one, with all statistics under "stats". Prefer "1min" or coarser for multi-day windows, and "1day" or coarser for weeks and months, to keep response size bounded. Day values exist ONLY at "1day" and coarser: resting heart rate, nightly HRV, SpO2, respiratory rate, VO2 max, skin temperature, and a provider's daily steps or energy. At "raw" or minute resolutions these types come back empty for most wearables, so ask for "1day" when the question is "what was X on/over these days".raw
start_timeYesStart of the window in ISO-8601 format. Example: "2026-04-05T00:00:00Z"

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the nature of the data (raw/downsampled sample stream underlying summaries) but does not cover permissions/auth, response-size or pagination behavior, or the empty-result behavior that the tool evidently exhibits in some resolutions. The detailed downsampling and empty-day behavior is disclosed only in the schema's resolution property, not here.

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?

Two sentences, front-loaded with the action and scope, then the data-model explanation, then the decision rule. No filler and no repetition of what the schema already says; each sentence changes what the agent will do.

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 five-parameter read tool with a full schema and an output schema (so return values need no explanation), the description is nearly self-sufficient. The only shortfall is that behavioral caveats the tool actually has (empty results at raw resolution for certain types) live entirely in the schema rather than being surfaced in the description.

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 documents all five parameters, including an unusually rich resolution field covering downsampling and empty-value cases. The description adds only the framing of 'within a time range' and 'granular vs daily averages', which is thematic rather than new parameter-level meaning; baseline 3 is appropriate.

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?

States a specific verb and resource ('Get granular time-series samples') plus its scope ('for a user within a time range'), and immediately positions it relative to the higher-level summaries (activity, sleep, workouts) in the sibling set. An agent can distinguish it from get_activity_summary and get_sleep_summary without opening the schema.

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?

Gives two explicit selection conditions: metrics that have no dedicated summary tool (with concrete examples: weight, SpO2, blood glucose, respiratory rate, HRV) and requests needing finer granularity than daily averages. It effectively names the alternative class (summary tools) and the rule that routes traffic away from this tool, which is the strongest form of routing guidance.

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