Skip to main content
Glama
Quantified Self MCP Server

Quantified Self MCP Server

Read raw measurements

read_measurements
Read-onlyIdempotent

View individual measurement rows instead of daily aggregates to see exact timing and source, most recent first. Filter by metric, source, or date to inspect raw readings.

Instructions

Read individual measurement rows (not the daily_metrics aggregate), most recent first. Use this to see exactly when and where each reading came from, rather than just a day's summarized value.

Do not use this tool when:

  • the user wants a broad, multi-metric overview -> use read_health_data instead.

  • the user wants one metric's day-by-day history -> use get_metric_history instead.

  • the user wants workout sessions -> use read_workout_sessions instead.

Privacy note: this server and its SQLite file are entirely local, but the data returned by this tool becomes part of the conversation sent to whatever model the calling client is configured with. If that model runs in the cloud rather than on your machine, treat this the same as pasting the data into a chat with that provider.

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": "read_measurements"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return, 1 to 1000 (default 200).
metricNoOnly return this metric. Omit for all metrics.
sourceNoOnly return rows from this source, e.g. "Apple Watch". Omit for all sources.
end_dateNoOnly return rows on/before this date (YYYY-MM-DD). Omit for no upper bound.
start_dateNoOnly return rows on/after this date (YYYY-MM-DD). Omit for no lower bound.

Output Schema

NameRequiredDescriptionDefault
countYes
measurementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.31
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum rows to return (default 200)."New value: +"Maximum rows to return, 1 to 1000 (default 200)."
  2. Changed2 schema fields changedv1.0.29
    • addedOutput schema / properties / measurements / items / properties / value / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / measurements / items / properties / value / type
      Removed value: -"number"
  3. Addedv1.0.16
  4. Removedv1.0.15
  5. Addedv1.0.11

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description still adds real context: result ordering, provenance visibility ('exactly when and where each reading came from'), and a data-exfiltration/privacy warning about the SQLite file being local while returned rows enter the model conversation. It does not mention pagination or how limit interacts with total row counts, keeping it short of a 5.

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 core purpose in the first sentence, then a scannable bulleted exclusion list. The privacy paragraph is longer than the rest but carries non-obvious operational value; nothing is wasted, though the note could be tightened slightly.

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?

For a read-only filtered query tool with an output schema already defining return shape, the description covers when to use it, when not to, ordering, provenance, and a privacy consideration absent from structured fields. No gap an agent needs before calling it.

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% and all five optional filters (limit, metric, source, start_date, end_date) are documented in the schema with defaults and formats. The description adds no filter semantics beyond the schema, so the baseline 3 for high-coverage schemas applies.

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 ('Read individual measurement rows') plus the ordering ('most recent first') and explicitly negates the related aggregate ('not the daily_metrics aggregate'). An agent can distinguish this from read_health_data / get_metric_history / aggregate_measurements without opening any 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?

Goes beyond a positive statement into an explicit 'Do not use this tool when' block with three named alternatives and the exact user intent that selects each one (broad overview, single-metric history, workouts). This 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.