Skip to main content
Glama

English version: README.en.md

米桥(Mi Fitness Data Bridge)

Glama score

Local-first data bridge that exports your own 小米运动健康 data to SQLite, JSON, CSV, Python, and MCP-compatible tools.

The 小米运动健康 App is happy to show you your steps, sleep, and heart rate — but never lets you take that data with you. This bridge puts your own data into a SQLite file on your own hard drive.

Trademark notice: 小米, 米家, and Mi Fitness are trademarks of 小米 Corporation. This project is an unofficial community project and is not affiliated with or endorsed by 小米.

The experimental cloud adapter may become unusable at any time because 小米 changes its private APIs. Use it only on accounts and data you are authorized to access.

Verified in practice

Recorded on 2026-07-20 on Windows (Python 3.14) from a commit on the main branch. All data are synthetic and involve no credentials or network access. (Test counts re-checked and updated on 2026-08-17.)

Test suite:

$ python -m pytest -q -p no:cacheprovider
........................................................................ [ 96%]
...                                                                      [100%]
75 passed in 10.27s

End-to-end synthetic demo (examples/synthetic_demo.py first populates the local SQLite cache with synthetic records, then runs the real JSON/CSV export pipeline):

$ python examples/synthetic_demo.py
Seeded synthetic database: C:\Users\<you>\AppData\Local\Temp\mi-fitness-demo-53el7cfh\mi_fitness.db
  daily_activity: 2026-07-15 .. 2026-07-15 (1 day(s))
  sleep: 2026-07-14 .. 2026-07-14 (1 day(s))
  workouts: 2026-07-15 .. 2026-07-15 (1 day(s))
  body_measurements: 2026-07-15 .. 2026-07-15 (1 day(s))

Export completed
  mi_fitness.json
  daily_activity.csv
  sleep.csv
  workouts.csv
  body_measurements.csv
  heart_rate.csv
  spo2.csv
  stress.csv
  abnormal_heart_beat.csv

JSON envelope:
  schema_version: 1.0
  source: mi_fitness_data_bridge
  records.daily_activity: 1 row(s)
  records.sleep: 1 row(s)
  records.workouts: 1 row(s)
  records.body_measurements: 1 row(s)

Sample sleep row (synthetic):
  start_at=2026-07-14T23:20:00 end_at=2026-07-15T07:05:00
  duration_minutes=465 score=86
  stages=[{"stage": "deep", "minutes": 82}, {"stage": "light", "minutes": 271}, {"stage": "rem", "minutes": 88}, {"stage": "awake", "minutes": 24}]

Related MCP server: garmin-givemydata

Merged health-assistant project

The health-assistant project (a local-first personal health dashboard: Strava, sleep, body composition, diet analysis) has been merged into this repository, and its original repository has been archived. The absorbed assets live under the docs/health-assistant/ directory:

  • analytics.py — zero-dependency reference implementation of a training/recovery summary and recommendation engine (7-day training statistics, acute-to-chronic workload ratio, readiness checks, daily training recommendations).

  • coaching_methodology.md — the interpretable cycling coaching, body composition, and sports nutrition methodology behind it.

  • README.md — full migration notes, including the parts intentionally not ported (FastAPI dashboard, Strava OAuth/Webhook pipeline, meal photo analysis) and the reasons.

What this project does

  • Reads 小米运动健康 data through an experimental China-region cloud adapter.

  • Stores normalized records in a local SQLite database.

  • Exports portable JSON or CSV without credentials.

  • Exposes local MCP query tools for personal automation.

  • Provides a reusable connector implementation for downstream projects (e.g., a personal fat-loss advisor).

It deliberately does not provide medical advice, weight-loss guidance, hosted account access, or multi-user cloud services.

Why this bridge?

Before

After

Your health history lives only in the 小米运动健康 App, and the only way to “export” it is taking screenshots.

mi-fitness-bridge sync pulls daily activity, sleep, workouts, body measurements, heart rate, blood oxygen (SpO2), and stress into a normalized local SQLite database.

To answer “how did I sleep last month”, you have to scroll back day by day in the App.

mi-fitness-bridge export --format csv --type sleep --start-date ... --end-date ... outputs a CSV filtered exactly to that interval, which can be opened directly in spreadsheet software.

To let an AI assistant access your health data, you have to hand over your credentials to some hosted service.

mi-fitness-bridge serve exposes local MCP query tools based on your own database; the passToken stays in the OS keychain and is never included in export files.

Supported datasets

  • Daily activity: steps, distance, active calories, and active minutes.

  • Sleep records and sleep stages.

  • Workout records.

  • Body measurements: weight and available body composition fields.

  • Heart-rate samples, including resting heart rate when available.

  • Blood oxygen (SpO2), stress, and abnormal heartbeat events (depending on account/device availability).

Actual availability varies by device, account region, firmware, and 小米 upstream services.

Installation

git clone https://github.com/shkyyy18/mi-bridge.git mi_fitness_data_bridge
cd mi_fitness_data_bridge
python -m venv .venv

Windows PowerShell:

.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"

Windows Git Bash:

source .venv/Scripts/activate
pip install -e ".[dev]"

macOS/Linux:

source .venv/bin/activate
pip install -e '.[dev]'

Configuration

A more secure interactive configuration path avoids writing the passToken directly into your shell history:

mi-fitness-bridge setup
mi-fitness-bridge doctor

When available, credentials are stored via the local keyring. Some fallback keyring implementations may not store secrets securely; please understand your OS's keyring behavior before using.

How to get user_id and passToken

This bridge uses 小米 account-level credentials (the same login state as the 米家 App). Use either of the following two methods:

Method 1: manual copy from the browser

  1. Open account.xiaomi.com in your browser and sign in with your 小米 account (the same account as the 小米运动健康 App).

  2. Open Developer Tools (F12) → Application → Cookies → https://account.xiaomi.com.

  3. Copy the values of the userId and passToken cookies and paste them when mi-fitness-bridge setup prompts you.

Method 2: QR-code login tool

Sign in once by scanning a QR code with the open-source mijia-api:

pip install mijiaAPI
python -c "from mijiaAPI import mijiaAPI; mijiaAPI().login()"   # 终端出二维码,用米家 App 扫码

The login state is saved by default at ~/.config/mijia-api/auth.json (on Windows, %USERPROFILE%\.config\mijia-api\auth.json). The userId and passToken inside it can be used directly with this bridge — 小米 account-level credentials work across services, and the bridge uses them to obtain a 小米运动健康 (sid=miothealth) session. Note that auth.json stores credentials in plaintext: after entering the userId and passToken into this bridge (system keychain), it is recommended to delete that file.

Note:

  • The passToken expires; when doctor reports authentication failure, simply re-fetch it using the steps above.

  • For the browser method, sign in from your usual network environment; frequent or off-site operations may trigger 小米 account risk control (slider/SMS verification). If you hit risk control, switch to the QR-code method.

  • Cookie names and the login flow are based on actual testing in 2026-08; they may vary by account region, device, or risk-control policy. 小米 may also adjust its private APIs at any time (see the experimental notice at the top).

  • These two values are equivalent to your account login state. Do not leak them, and do not commit them to Git.

Sync

mi-fitness-bridge sync --start-date 2026-07-01 --end-date 2026-07-15

Or sync only one dataset:

mi-fitness-bridge sync --type sleep --start-date 2026-07-01 --end-date 2026-07-15
mi-fitness-bridge sync --type body_measurements --start-date 2026-07-01 --end-date 2026-07-15

The database defaults to the platform user data directory (determined by platformdirs). sync, export, serve, and doctor all support moving it with the --db flag or the MI_FITNESS_DB_PATH environment variable. Precedence: command line > environment variable > default location. Note that platformdirs does not respond to the LOCALAPPDATA environment variable on Windows; to customize the path, use one of the two methods above:

mi-fitness-bridge sync --db ./data/mi_fitness.db --start-date 2026-07-01 --end-date 2026-07-15
export MI_FITNESS_DB_PATH=./data/mi_fitness.db

Known limitation: incremental sync without a date argument starts from the time of the last local record; upstream corrections or backfills of earlier history are not pulled automatically. If needed, explicitly re-run that interval with an earlier --start-date (idempotent overwrite; no duplicate records are produced).

Export

Generate a portable JSON file:

mi-fitness-bridge export --format json --output exports/mi_fitness.json

Generate one CSV file per dataset:

mi-fitness-bridge export --format csv --output exports/csv

Filter by dataset and date:

mi-fitness-bridge export --format json --type sleep \
  --start-date 2026-07-01 --end-date 2026-07-15 \
  --output exports/sleep.json

Export files never contain the saved 小米 passToken, but they do contain identifying columns such as plaintext user_id — export files are sensitive personal data, so store them carefully. Exported health records are ignored by Git by default.

See Export format for export format details (JSON envelope structure, CSV layout, closed-interval date filtering rules).

MCP service

The compatibility command remains available:

mi-fitness-bridge serve
# legacy alias
mi-fitness-mcp serve

Available tools include connection status, sync, coverage, daily summary, body measurements, sleep, workouts, heart rate, blood oxygen (SpO2), and stress queries, as well as the agent-oriented workout_series workout time-series tool — it automatically downsamples according to the hard max_points cap (fixed time-bucket means, aggregated inside SQLite), and reports downsampled, source_points, returned_points, and method truthfully in the response, while also providing full-precision statistics (avg/min/max/percentiles) and time in heart-rate zones. List/summary tools such as query_workouts and get_daily_summary include data_quality (covered days, missing metrics, last sync time).

Client integration example (configuration JSON for MCP clients such as Claude Code / Codex):

{
  "mcpServers": {
    "mi-bridge": {
      "command": "mi-fitness-bridge",
      "args": ["serve"]
    }
  }
}

Note: serve is a stdio service; it communicates with the client over standard input/output, not an HTTP service. Running it directly in a terminal will look like it is “stuck” — that is it waiting for MCP messages from the client, which is normal. For everyday use, let your MCP client start it with the configuration above.

Use as a Python dependency

The normalized adapter remains available under a compatible module name:

from mi_fitness_mcp.adapters.mi_fitness_cloud import MiFitnessCloudAdapter

Downstream projects should install this package rather than vendor or copy the connector source code.

License

License history: versions released before 2026-08-03 were licensed under MIT (the MIT attribution of the upstream kubulashvili/mi-fitness-mcp and binglua/mi-fitness-mcp-cn is retained in the NOTICE section at the top of LICENSE); new code in the current version is AGPL-3.0-only. See LICENSE and THIRD_PARTY_NOTICES.md for details.

Privacy and security

  • Safeguard the passToken, local database, export files, and logs; do not leak them.

  • Export files do not contain the passToken, but they do contain identifying columns such as plaintext user_id, and are equally sensitive personal data.

  • Do not run this bridge as a public credential proxy.

  • Do not commit real health data or screenshots containing personal metrics.

  • Always use synthetic data in bug reports and documentation.

  • This software is only for personal data access and engineering research, not for diagnosis or treatment.

See SECURITY.md for responsible disclosure and THIRD_PARTY_NOTICES.md for provenance.

Development

pip install -e '.[dev]'
python -m pytest -q -p no:cacheprovider
python -m ruff check src tests

Release

See CHANGELOG.md for version history and docs/release-checklist.md for release and post-release checklist items.

  • garmin-mcp — a local-first MCP service for Garmin data. It shares the agent-safe-series/v1 data contract with this project (time-series downsampling field semantics are byte-for-byte aligned), so the same AI agent can seamlessly consume data from both services.

Support this project

If this tool helped you, give me a star on GitHub.

Available Tools

17 tools
cancel_syncA
Idempotent

Cancel a queued/running background MCP sync by its exact sync_id. Returns the terminal job status after cancellation completes; already-finished jobs are returned unchanged. Stops future requests without deleting or rolling back records already committed to SQLite; counts may be incomplete. Unknown IDs or foreground jobs return status=error. No new cloud request. Use get_sync_status to inspect progress and sync_data with user consent to resume via a new job.

ParametersJSON Schema
NameRequiredDescriptionDefault
sync_idYesExact ID of the background sync job to stop.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the safety profile (idempotentHint, destructiveHint=false, non-read-only). The description goes well beyond: no rollback of already-committed SQLite records, possible incomplete counts, terminal status returned for finished jobs, status=error for unknown/foreground jobs, and no new cloud request.

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?

Purpose and scope are front-loaded in the first clause, and every sentence conveys a distinct fact (rollback behavior, error cases, alternatives). It is dense, but a couple of semicolon-chained clauses could be trimmed without losing meaning.

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?

There is no output schema, yet the description explains the return value (terminal job status, finished jobs returned unchanged) and the error case. Combined with the mutation caveats and alternatives, an agent has everything needed to call this 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 coverage is 100% for the single sync_id parameter, so the schema already documents its meaning and the required/minLength constraints. The description's 'exact sync_id' adds only a mild emphasis on exactness, so the baseline 3 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 with scope: 'Cancel a queued/running background MCP sync by its exact sync_id.' It is immediately distinguishable from siblings like get_sync_status (inspection) and sync_data (resumption), which the description itself names.

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?

Explicitly routes the agent: 'Use get_sync_status to inspect progress and sync_data with user consent to resume via a new job.' It also states when the tool is inapplicable (unknown IDs, foreground jobs) and what those cases return.

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

get_connection_statusA

Check whether the configured Mi Fitness account can connect before requesting a sync. May contact Xiaomi, authenticate and rotate credentials in the local keyring; does not sync health records. Requires local interactive CLI setup, never credentials in tool arguments. Returns connected, mode, last_sync_at and available_data_types; configured responses also include connection_state, region, last_connection_error and sync_in_progress. While syncing, reports existing connection state instead of probing. For cached date coverage use get_data_coverage.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.9/5.0
Behavior5/5

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

The description openly discloses network contact and credential rotation ('May contact Xiaomi, authenticate and rotate credentials in the local keyring'), which complements the readOnlyHint=false annotation. It also adds conditional behavior not in the annotations: while syncing, it 'reports existing connection state instead of probing.'

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?

The description is compact and every sentence earns its place: purpose, side effects/prerequisites, return fields, conditional behavior, and the alternative tool are all covered without redundancy. It front-loads the main purpose before adding supporting detail.

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?

Despite having no output schema, the description enumerates the returned fields and conditional additions such as connection_state, region, last_connection_error, and sync_in_progress. It provides enough behavioral and environmental context for an agent to invoke the tool correctly, including prerequisites, side effects, and sync-time behavior.

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

Parameters4/5

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

The input schema is empty, so no per-parameter explanation is required; the baseline for zero parameters is 4. The description still adds useful input-level guidance by requiring interactive CLI setup and forbidding credentials in tool arguments, though that is mostly a usage constraint rather than parameter meaning.

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 first sentence names the exact operation ('Check whether the configured Mi Fitness account can connect') and positions it 'before requesting a sync,' clearly distinguishing it from sync_data. It also explicitly routes coverage queries to get_data_coverage, preventing confusion with a sibling tool.

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?

The description gives a clear precondition ('Requires local interactive CLI setup, never credentials in tool arguments') and a temporal trigger ('before requesting a sync'). It also provides an explicit alternative with 'For cached date coverage use get_data_coverage' and notes that it 'does not sync health records,' acting as a when-not condition.

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

get_data_coverageA
Read-onlyIdempotent

Inspect which date ranges already exist in the local cache before choosing query dates or requesting sync_data. Returns data.coverage [{data_type, first_date, last_date, days_with_data}] for nonempty datasets; omitted/empty data_types means all datasets. Empty datasets are omitted, and first/last dates do not guarantee uninterrupted coverage between them. This does not test cloud connectivity or report a background job; use get_connection_status or get_sync_status respectively. 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 sync_data to refresh with user consent.

ParametersJSON Schema
NameRequiredDescriptionDefault
data_typesNoOptional dataset names to inspect; omit or [] for all cached datasets.

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnlyHint, idempotentHint, destructiveHint, openWorldHint. The description adds valuable behavioral context: read-only local SQLite query, no cloud request, requires configured account/cache, and important caveats about date coverage and empty-list meaning. It enhances rather than contradicts annotations.

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?

Every sentence earns its place: purpose, usage timing, exclusions, behavior, caveats, prerequisites, and return format are all covered without redundancy. It is front-loaded with the core purpose and then provides necessary details.

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?

Despite having only one optional parameter and no output schema, the description fully explains the return structure, meaning of empty lists, the non-guarantee of uninterrupted coverage, and the distinction from related tools. Nothing needed for correct invocation is missing.

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% for the single data_types parameter, which already explains 'Optional dataset names to inspect; omit or [] for all cached datasets.' The description restates this in prose but adds no new semantic meaning beyond the schema, so the baseline of 3 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?

The description states a specific verb 'Inspect' and resource 'date ranges in the local cache', and immediately differentiates from siblings by naming get_connection_status and get_sync_status for other concerns. It leaves no ambiguity about what this tool does.

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?

It explicitly states when to use ('before choosing query dates or requesting sync_data') and when not to use it, naming the exact alternatives for cloud connectivity and background job status. This is model usage guidance.

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

get_profileA
Read-onlyIdempotent

Read minimal metadata for the already-connected local account, not a medical or demographic profile. No cloud request or cache write; returns JSON text with status, source and data.profile containing account_id_masked, configured timezone and devices (currently an empty placeholder). Never returns credentials or plaintext account IDs. Returns status=error if disconnected; get_connection_status can establish/check the connection first. Use query_daily_activity for activity totals.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, yet the description adds real context beyond them: no cloud request, no cache write, the returned JSON shape (status, source, data.profile fields), the guarantee that credentials and plaintext account IDs are never returned, and status=error behavior when disconnected.

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?

Dense but front-loaded: the core purpose leads, followed by behavioral guarantees, error handling, and the sibling routing hint. Every sentence earns its place with no filler.

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?

With no output schema, the description compensates by describing the return payload (status, source, data.profile contents) and error semantics. Combined with the routing guidance, an agent has everything needed to call and interpret it correctly.

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

Parameters4/5

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

The tool takes zero parameters, so the schema carries nothing and the description need not add parameter meaning. Baseline of 4 applies; no syntax or format gaps exist because there is nothing to pass.

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 (Read) and resource (minimal metadata for the already-connected local account) and explicitly disambiguates from a medical/demographic profile. An agent can distinguish it from siblings like query_body_measurements or query_daily_activity immediately.

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 explicit when-to-use (read connected account metadata), a fallback for the disconnected case (get_connection_status can establish/check first), and a routing alternative (query_daily_activity for activity totals). Nothing is left to inference.

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

get_sync_statusA
Read-onlyIdempotent

Read one MCP sync job by sync_id, including after a server restart. Returns sync_id, status, timestamps and available result counts. States are queued, running, ok, partial, error, cancelled or interrupted (previous process stopped). Read-only local lookup; no cloud request. History retains the latest 500 completed jobs per account; unknown/expired IDs return status=error. Use query_sync_history to discover IDs, cancel_sync to stop a live background job, or get_connection_status for cloud connectivity. Restarted lookups omit raw error text for privacy.

ParametersJSON Schema
NameRequiredDescriptionDefault
sync_idYesExact sync_id returned by sync_data or query_sync_history; not a workout ID.

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: clarifies this is a local lookup with no cloud request, documents the 500-job retention window per account, states that unknown/expired IDs return status=error rather than failing silently, and notes that restarted lookups omit raw error text for privacy. These are behavioral facts an agent could not infer from readOnlyHint/idempotentHint alone.

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-loads the core purpose and return shape before the state list and routing guidance, and every sentence carries information. It is dense with four packed sentences, but none are wasted or redundant.

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?

With no output schema, the description still enumerates the returned fields and the complete state vocabulary, plus edge-case behavior for expired IDs and restarted processes. An agent has everything needed to call it and interpret the response 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 the schema already defines sync_id, its format source, and that it is not a workout ID — establishing the baseline of 3. The description reinforces the lookup semantics (works after a restart, unknown IDs yield status=error) but adds no new syntax or constraint beyond the schema.

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 precise verb and resource ('Read one MCP sync job by sync_id') and enumerates the returned fields and the full set of possible states. An agent can distinguish it from get_connection_status and query_sync_history 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?

Explicitly routes to alternatives with conditions: query_sync_history to discover IDs, cancel_sync to stop a live job, get_connection_status for cloud connectivity. Also names the inverse relationship (IDs come from sync_data or query_sync_history), so the when-to-use picture is complete.

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

query_abnormal_heart_beatA
Read-onlyIdempotent

Read device-reported abnormal-heartbeat events starting within an inclusive YYYY-MM-DD range. Returns data.events [{event_id, start_at, end_at, duration_seconds}] and data.count, earliest first. limit defaults to 5000; use offset for subsequent pages. Events are upstream flags, not a diagnosis; an empty list is not evidence of a healthy heart. Use query_heart_rate for ordinary bpm samples, not this event list. 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.

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

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the safe read-only profile, but the description adds substantial context beyond them: no cloud request or automatic sync, cache-only results, empty list means no cached matches rather than no measurements, events are upstream flags not a diagnosis, and 'keep filters unchanged and avoid syncing between pages' for stable pagination. That is exactly the kind of behavioral nuance annotations cannot carry.

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?

Purpose and range semantics are front-loaded before the caveats, and almost every sentence carries operational value. It is slightly dense and mildly redundant in flagging empty-list interpretation twice, which keeps it from a 5.

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?

With no output schema, the description supplies the return shapes (data.events fields, data.count, data.pagination with next_offset), pagination termination behavior, precondition (configured local account/cache), and error-surrogate semantics. Nothing an agent needs to call this correctly is missing.

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 start_date, end_date, limit and offset are already fully documented with patterns, defaults and bounds. The description reinforces the default of 5000 and the offset-for-paging workflow but adds no format or constraint detail the schema lacks, so the baseline 3 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 (Read) and resource (device-reported abnormal-heartbeat events) plus the scoping dimension (inclusive YYYY-MM-DD range). It explicitly distinguishes itself from the sibling query_heart_rate, so an agent can route without opening either 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?

Names the alternative (query_heart_rate for ordinary bpm samples) and the condition for choosing it, and routes to get_data_coverage for availability checks and sync_data for refreshes. It also warns that this is a local cache query requiring a configured account, which is genuine when-to-use guidance.

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

query_body_measurementsA
Read-onlyIdempotent

Read timestamped body measurements over an inclusive YYYY-MM-DD range. Returns data.measurements and data.count in timestamp order; latest_only=true returns only the last matching record, not the latest value of each field. Omitted/empty metrics returns all available fields; otherwise timestamp plus selected fields, with absent optional measurements omitted. Units are kg for mass, percent for body fat/water, dimensionless for BMI. Use query_metric_series(metric=weight_kg) for a daily or aggregated weight trend. latest_only selects before pagination. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
metricsNoOptional body-field projection; timestamp always remains. Omit or [] for all available fields. Missing optional fields are omitted, not zero.
end_dateYesInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateYesInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.
latest_onlyNoReturn only the last measurement in this range when true; false returns all matching records.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, but the description goes well beyond: local SQLite query with no cloud request or sync, requirement of a configured local account/cache, and the crucial semantic that empty lists mean no cached matches rather than zero measurements. It also discloses that latest_only selects before pagination and that next_offset is null at the end.

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 purpose is front-loaded in the first sentence, followed by return shape, semantics, sibling routing, and caching caveats. It is dense and slightly run-on, but nearly every clause carries distinct information and nothing is padding.

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?

With no output schema, the description carries the return-shape burden and does so thoroughly (data.measurements, data.count, status, source=cache, generated_at, pagination with next_offset). For a 6-param read tool with sibling alternatives, nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: units (kg, percent, dimensionless), the clarification that latest_only returns the last record rather than the latest value per field, and metric-projection behavior with absent fields omitted rather than zeroed. These complement rather than merely restate the schema.

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 ('Read') and resource ('timestamped body measurements') with scope ('inclusive YYYY-MM-DD range'). It explicitly distinguishes itself from the sibling query_metric_series, so an agent can route correctly without opening either 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?

Names the alternative ('Use query_metric_series(metric=weight_kg) for a daily or aggregated weight trend') and points to get_data_coverage and sync_data for availability and refresh. It also warns to keep filters unchanged and avoid syncing between pages, which is genuine when/when-not guidance.

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

query_daily_activityA
Read-onlyIdempotent

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.

ParametersJSON 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.

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.

query_heart_rateA
Read-onlyIdempotent

Read timestamped heart-rate samples in bpm over an inclusive YYYY-MM-DD range, optionally filtering sample_type. Returns data.samples [{timestamp, bpm, sample_type}] and data.count, earliest first. limit defaults to 5000; use a smaller page/date window for large datasets. The cloud adapter normally stores resting/active/passive, so sample_type=workout may be empty; use query_workout_series with a workout_id to analyze all samples in that activity window. Not a diagnosis. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
end_dateYesInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateYesInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.
sample_typeNoOptional exact stored sample type; omit for all. Cloud records normally use resting/active/passive; for workout-window samples use query_workout_series.

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, idempotent, and closed-world behavior, but the description adds substantial context: local SQLite only, no cloud request or automatic sync, requires a configured local account/cache, returns cache-sourced JSON, and empty lists mean no cached matches. It also discloses pagination semantics and the warning not to sync between pages. There is no contradiction with annotations.

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?

The description is long but front-loaded, beginning with purpose, scope, and return shape before moving into caveats, alternatives, and pagination. Every sentence carries actionable information for selecting or invoking the tool correctly, and there is no redundant or filler content.

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?

The tool has five parameters, no output schema, and rich annotations. The description compensates by explaining return fields, pagination, cache semantics, empty-result meaning, local-only behavior, and alternatives for workout or coverage inspection. An agent has enough context to call the tool correctly and interpret its results.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds meaningful parameter context beyond the schema. It explains limit defaults, recommends smaller page/date windows for large datasets, notes that sample_type=workout may be empty on cloud adapters, and clarifies pagination fields such as next_offset being null at the end. The schema already covers most parameter semantics, so a 4 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?

The description states a specific verb and resource: read timestamped heart-rate samples in bpm over an inclusive date range, with optional sample_type filtering. It clearly distinguishes this tool from query_workout_series by explaining when to use the latter for workout-window samples. An agent can identify the tool's scope 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?

The description gives explicit when-to-use guidance, including date-range filtering, optional sample_type, and pagination behavior. It names alternatives for unavailable or workout-specific data: query_workout_series with a workout_id, get_data_coverage to inspect availability, and sync_data to refresh with user consent. It also states when empty results should not be interpreted as zero measurements.

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

query_metric_seriesA
Read-onlyIdempotent

Build a dated trend for steps (count), distance_m (meters), active_kcal (kcal), or weight_kg (kg) over an inclusive YYYY-MM-DD range. Returns data.metric and data.series [{date, value}], sorted ascending, without filling missing dates. Activity uses daily totals; weight uses the latest stored measurement per day. granularity=day returns these daily values; week groups from Monday, month from the first day. aggregation (default sum) applies only to week/month daily values; latest selects the last available day. Prefer avg or latest for weight. For raw body readings use query_body_measurements; heart-rate samples use query_heart_rate; one workout uses query_workout_series. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records per page (1-5000); count describes this page only.
metricYesMetric and output units: steps=count, distance_m=meters, active_kcal=kcal, weight_kg=kg.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
end_dateYesInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateYesInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.
aggregationNoReducer over daily values in week/month buckets; ignored for day. latest means last available date; avg excludes missing days. Prefer avg/latest for weight.sum
granularityNoday returns daily values; week groups by Monday; month by first day. Missing days are not zero-filled.day

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/local, yet the description adds substantial non-obvious behavior: local SQLite with no cloud request or auto-sync, requires a configured account/cache, empty lists mean no cached matches rather than zero measurements, and pagination semantics (keep filters unchanged, don't sync between pages). This is well beyond what the annotations convey.

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 purpose and metric list are front-loaded before the routing and behavioral details, and nearly every sentence carries operative information. It is dense and long, bordering on a wall of text for a fast scan, but the length is largely justified by seven parameters and non-trivial bucketing semantics.

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?

With no output schema present, the description fully compensates: it describes the return payload (data.metric, data.series of {date,value}, ascending, no gap-filling) plus status/source/generated_at and the pagination object with next_offset. An agent has everything needed to call and interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: activity uses daily totals while weight uses the latest stored measurement per day, and it reinforces that aggregation applies only to week/month buckets. Marginal extra value over the already-complete schema.

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+resource+scope: build a dated trend for named metrics over an inclusive YYYY-MM-DD range. It enumerates the four supported metrics with units and explicitly names the siblings it is not (query_body_measurements, query_heart_rate, query_workout_series), so an agent can distinguish it without opening schemas.

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?

Explicit routing: raw body readings go to query_body_measurements, heart-rate samples to query_heart_rate, single workouts to query_workout_series. It also states when to prefer alternative aggregations ('Prefer avg or latest for weight') and points to get_data_coverage/sync_data for availability gaps.

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

query_sleepA
Read-onlyIdempotent

Read sleep sessions (start-date filtered) and a main-sleep summary (local wake-date filtered) over an inclusive YYYY-MM-DD range. Returns data.sessions, count, main_sessions, metrics and data_quality; main sleep is the longest valid non-nap per wake date. include_naps defaults true and affects the raw list only, not main-sleep selection. Times include start_at/end_at; durations are minutes; sleep_score/source can be null and missing scores are not zero. Expand dates around midnight if needed; raw counts can differ from wake-date summary counts. Use this instead of query_daily_activity for sleep. Pagination affects sessions/count only; main_sessions, metrics and quality still describe the full date range, so keep ranges narrow. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
end_dateYesInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateYesInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.
include_napsNoInclude naps in raw sessions (default true); main-sleep summary always excludes naps.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantial context beyond them: local SQLite with no cloud request or auto sync, dependency on a configured account/cache, empty lists meaning no cached matches rather than zero measurements, and the definition of main sleep as the longest valid non-nap per wake date.

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 purpose and scope, and nearly every clause carries operational information. It is very dense and comma-spliced, which slightly hurts scannability, but there is little pure filler to cut.

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?

With no output schema, the description fully compensates by enumerating returned fields (sessions, count, main_sessions, metrics, data_quality, pagination) and their caveats. Prerequisites, coverage checks, and the null-score/missing-score distinction are all stated, so an agent has what it needs to call and interpret results.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds non-schema semantics: include_naps affects only the raw list and never main-sleep selection, and pagination affects only sessions/count while main_sessions/metrics/quality describe the full range. It does not add date-format detail beyond the schema, which already carries pattern and examples.

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 (read) and two precise resources (sleep sessions, main-sleep summary), with the differing filter semantics for each (start-date vs local wake-date). It explicitly distinguishes itself from the sibling query_daily_activity, so an agent can route without opening schemas.

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 explicit routing ("Use this instead of query_daily_activity for sleep"), names get_data_coverage and sync_data with their conditions, and adds an operational rule ("keep ranges narrow", "avoid syncing between pages"). When-to-use and when-to-use-something-else are both covered.

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

query_spo2A
Read-onlyIdempotent

Read stored blood oxygen saturation samples (spo2_pct, percent) over an inclusive YYYY-MM-DD range. Returns data.samples [{timestamp, spo2_pct}] and data.count, earliest first. limit defaults to 5000; use offset for subsequent pages. These are device measurements, not a diagnosis; missing records do not indicate normal oxygen levels. Use query_heart_rate for bpm rather than oxygen saturation. 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.

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

TDQS

A4.6/5.0
Behavior5/5

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

With annotations already covering read-only, idempotent, non-destructive, and non-open-world behavior, the description adds substantial context beyond them: local SQLite query, no cloud request or automatic sync, configured account/cache requirement, empty-list semantics, pagination behavior, and output shape. It clearly discloses important operational and interpretation caveats.

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 front-loaded with the core purpose and then moves through behavior, output, pagination, and caveats in a clear order. It is information-dense and mostly earns its length, though several pagination and output details are repeated across multiple sentences.

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?

There is no output schema, so the description carries the burden of explaining return values and does so thoroughly: data.samples with timestamp and spo2_pct, data.count, status, source, generated_at, and pagination fields. It also covers prerequisites, empty-results meaning, and pagination continuity, leaving little an agent needs missing.

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 input schema already documents all four parameters, including limit, offset, start_date, and end_date. The description repeats the inclusive date range, limit default, and offset usage but adds little parameter-level meaning beyond what the schema already provides, so the baseline of 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?

The description states a specific verb and resource: read stored blood oxygen saturation samples (spo2_pct, percent) over an inclusive date range. It distinguishes this from query_heart_rate by explicitly saying to use that tool for bpm rather than oxygen saturation. An agent can identify the tool 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?

It gives explicit routing guidance: use query_heart_rate for bpm, get_data_coverage to inspect availability, and sync_data to refresh with user consent. It also warns that missing records do not indicate normal oxygen levels and instructs keeping filters unchanged between pages.

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

query_stressA
Read-onlyIdempotent

Read device stress samples over an inclusive YYYY-MM-DD range, optionally filtered by level (low/medium/high). Returns data.samples [{timestamp, stress_score, level}] and data.count, earliest first. stress_score is the upstream device score, not a clinical assessment. limit defaults to 5000; use offset for subsequent pages. Use query_sleep for sleep quality rather than inferring it from stress. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
levelNoOptional exact stored stress level: low, medium or high; omit to include all levels.
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
end_dateYesInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateYesInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (read-only, idempotent, non-destructive); the description goes well beyond them by disclosing the local SQLite/cache execution model, no cloud request or auto-sync, the local-account prerequisite, the semantics of empty result sets, the status/source/generated_at envelope, and the 'keep filters unchanged between pages' constraint.

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 purpose, scope, then return shape, then constraints. Dense but every line carries information; a few items (limit default, offset usage) mildly duplicate the schema.

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?

No output schema exists, yet the description specifies the returned envelope (status, source=cache, generated_at, data.samples fields, data.count, data.pagination with has_more/next_offset) and the caveat about the upstream device score not being clinical. Nothing needed to call or interpret it correctly is missing.

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 coverage is 100%, so start_date/end_date/level/limit/offset are already documented with formats, defaults, and bounds. The description adds only marginal context (limit defaults to 5000, offset for subsequent pages) that mostly restates the schema, so the baseline of 3 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+resource ('Read device stress samples') with the exact scope (inclusive YYYY-MM-DD range, optional level filter) and the return shape. Names the sibling it is not (query_sleep) so an agent can distinguish it immediately.

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?

Explicit routing: use query_sleep instead of inferring sleep from stress, use get_data_coverage to inspect availability, use sync_data to refresh with consent. Also gives a when-not condition ('empty lists mean no cached matches, not zero measurements') and a pagination discipline rule.

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

query_sync_historyA
Read-onlyIdempotent

List this account's MCP sync jobs, newest first, from persistent local SQLite. Returns data.jobs and data.pagination with timestamps, statuses, available counts and safe error codes, never credentials, raw errors or health records. Includes foreground/background jobs started since this feature was installed, not CLI syncs; retains the latest 500 completed jobs plus active jobs. Read-only, no cloud calls. Use get_sync_status for one ID and cancel_sync for a live background job. Empty jobs means no retained history. Returns data.pagination {limit, offset, has_more, next_offset}; next_offset is null at the end. Keep filters unchanged and avoid syncing between pages.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), but the description adds substantial context beyond them: retention (latest 500 completed plus active), scope exclusions (no CLI syncs), no cloud calls, and exactly what is withheld (credentials, raw errors, health records). A rare case of the text genuinely extending the structured fields.

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 purpose first, then return shape, scope, retention, alternatives and pagination. Dense and mostly waste-free, though the sheer number of clauses packed into a single block makes it heavier than necessary.

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?

No output schema exists, but the description explains the return structure (data.jobs, data.pagination, next_offset null at end) and the empty-jobs meaning, so an agent has everything needed to call and interpret results.

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

Parameters4/5

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

Schema coverage is 100% so the schema defines limit/offset fully, making 3 the baseline. The description adds pagination semantics not in the schema: next_offset is null at the end, and the guidance to keep filters unchanged while paging, which improves correct offset reuse.

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+resource ('List this account's MCP sync jobs') plus scope (newest first, from persistent local SQLite), which clearly distinguishes it from siblings like get_sync_status and cancel_sync. An agent can identify the tool 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?

Explicitly names the alternatives and their conditions: 'Use get_sync_status for one ID and cancel_sync for a live background job.' It also clarifies what counts (foreground/background since install, not CLI syncs) and how to page (keep filters unchanged, avoid syncing between pages).

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

query_workoutsA
Read-onlyIdempotent

List recorded workouts starting within an inclusive YYYY-MM-DD range. Returns data.workouts, count and data_quality; rows include workout_id, activity_type, start_at/end_at, duration_minutes, distance_m, calories_kcal and available heart-rate/pace fields (missing fields may be null). activity_types matches case-insensitively; min_duration is minutes and min_distance_km is kilometers (unlike output distance_m). Filters combine with AND before pagination. Use a returned workout_id with query_workout_series for a heart-rate curve; this tool returns session summaries, not samples. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records per page (1-5000); count describes this page only.
offsetNoZero-based position; pass pagination.next_offset unchanged with the same filters.
end_dateYesInclusive last calendar date, YYYY-MM-DD; must be on or after start_date.
start_dateYesInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion.
min_durationNoMinimum workout duration in minutes, inclusive; 0 or omitted disables this filter.
activity_typesNoOptional activity labels from stored workouts (e.g. running); case-insensitive. Omit or [] for all; labels depend on device/upstream data.
min_distance_kmNoMinimum workout distance in kilometers, inclusive; 0 or omitted disables this filter. Returned distance uses meters.

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the read-only/idempotent annotations: returns JSON with status, source=cache, generated_at, and pagination metadata; explains that empty lists mean no cached matches (not zero measurements); notes it requires a configured local account/cache and performs no cloud request or sync. This is exactly the extra behavioral context the annotations cannot convey.

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 and generally dense with useful facts, but it is a long run-on block and repeats pagination/return guidance, so a little trimming would help. Nearly every sentence earns its place.

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?

With no output schema present, the description fully carries the return-shape burden (data.workouts, count, data_quality, pagination fields) and the caching/account prerequisites. Nothing essential for calling it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter semantics: 'min_duration is minutes and min_distance_km is kilometers (unlike output distance_m)' and 'filters combine with AND before pagination'. These clarify unit mismatches and filter combination logic beyond the per-field schema text.

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 ('List recorded workouts') plus its range scoping, and explicitly distinguishes itself from the sibling query_workout_series ('this tool returns session summaries, not samples'). An agent can tell exactly what this returns 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?

Names alternatives and the conditions selecting them: query_workout_series for heart-rate curves via a returned workout_id, get_data_coverage to inspect availability, sync_data to refresh with consent. It also gives operational guidance ('keep filters unchanged and avoid syncing between pages'), which is explicit when/how-to-use advice.

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

query_workout_seriesA
Read-onlyIdempotent

Read an auto-downsampled heart-rate curve for one workout_id obtained from query_workouts (contract agent-safe-series/v1). Uses all cached heart-rate sample types inside the workout window. Returns data with numeric t offsets in seconds from start_time, bpm values, downsampled/source_points/returned_points/method and full-resolution summary statistics. resolution defaults to 60 seconds and increases to respect max_points (default 400, hard cap 500). Pass the same reference_max_hr in bpm for comparable time_in_zone across activities; otherwise each workout uses its own maximum, so zones are not comparable. Unknown workout IDs or unsupported metrics return status=error. For raw date-range samples use query_heart_rate. 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
metricNoOnly heart_rate is supported; values are beats per minute (bpm).heart_rate
max_pointsNoRequested maximum returned points (default 400, 1..500); server also clamps direct service calls to this range.
resolutionNoRequested bucket duration in seconds (default 60, at least 1); automatically increased to fit max_points.
workout_idYesExact workout_id returned by query_workouts for this account; do not invent an ID.
reference_max_hrNoOptional positive reference maximum heart rate in bpm for zone normalization; use the same value across compared workouts. Omit to use this workout maximum.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, but the description adds substantial context beyond them: local SQLite only, no cloud request or automatic sync, requires a configured local account/cache, error status for unknown workout IDs, and the important caveat that empty lists mean no cached matches rather than zero measurements. The downsampling/clamping behavior and the 500-point hard cap are also disclosed.

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-loads the core purpose in the first sentence, then layers contract, semantics, and caveats. It is dense and long, but nearly every clause carries operational information; a few items (contract string, source=cache) are borderline overhead.

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?

There is no output schema, yet the description enumerates the returned fields (t offsets, bpm, downsampled/source_points/returned_points/method, summary statistics) and the envelope (status, source, generated_at, data). For a read tool with five parameters and no output schema, nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the resolution/max_points interaction ('resolution defaults to 60 seconds and increases to respect max_points') and the cross-activity comparability rationale for reference_max_hr. These go beyond the per-field schema text.

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+resource ('Read an auto-downsampled heart-rate curve for one workout_id') and scopes it to a single workout rather than a date range, which distinguishes it from query_heart_rate and query_metric_series. It also names the contract identifier, so an agent can identify the exact operation.

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?

Explicitly routes the agent: 'For raw date-range samples use query_heart_rate', 'Use get_data_coverage to inspect availability or sync_data to refresh with user consent'. It also gives the conditional rule for reference_max_hr (pass the same value for comparable time_in_zone, omit otherwise), which is real when-to-use guidance.

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

sync_dataA

Download selected Mi Fitness datasets from Xiaomi into local SQLite; writes records and sync watermarks, may authenticate/rotate local credentials, and does not modify cloud health records. Requires local CLI setup and user authorization to access the account. Omitted data_types selects all adapter-supported types; an empty list is invalid. Dates are inclusive YYYY-MM-DD; start_date must not exceed end_date. Omitted end_date uses today; omitted start_date resumes the watermark or uses configured lookback (default 30 days). force_full_sync ignores the watermark, not the requested date range, and does not erase the database. Only one sync runs at a time. background=false waits for status ok/partial/error, sync_id, record counts and per-type results; background=true returns accepted plus sync_id to poll with get_sync_status. Partial results may already be stored; inspect results before retrying. Use cached query tools instead when no refresh is needed.

ParametersJSON Schema
NameRequiredDescriptionDefault
end_dateNoInclusive last calendar date, YYYY-MM-DD; must be on or after start_date. Omitted: server local today.
backgroundNoFalse waits for results; true starts a process-local task and returns sync_id for get_sync_status polling.
data_typesNoDataset names; omitted selects all adapter-supported datasets; [] is invalid.
start_dateNoInclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion. Omitted: saved watermark, or configured lookback (default 30 days) if no watermark/force_full_sync=true.
force_full_syncNoIgnore saved sync watermark and re-fetch the requested range; no deletion. If start_date is omitted use configured lookback.

TDQS

A5/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint false, destructiveHint false), the description discloses detailed behavior: it may authenticate/rotate credentials, requires local CLI setup and user authorization, runs only one sync at a time, handles partial results, and clarifies that force_full_sync does not erase the database. This significantly exceeds the sparse annotation information.

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?

The description is long but every sentence serves a purpose. It front-loads the core purpose and then systematically covers prerequisites, parameter nuances, execution behavior, and alternative tools. No redundant or filler sentences; each adds necessary context.

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?

Given the tool's complexity (5 parameters, no output schema), the description covers all aspects needed for correct invocation: prerequisites, authorization, date handling, sync semantics, background modes, and result interpretation. It also warns about partial results and retry considerations, making it fully 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?

Schema coverage is 100% and the description adds substantial meaning: omitted data_types selects all supported types, empty list invalid, date ranges are inclusive, start_date omitted resumes watermark, force_full_sync ignores watermark but not date range, background behavior differences. It enriches the schema definitions with usage semantics.

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 clearly states the tool downloads Mi Fitness datasets into local SQLite, writes records and sync watermarks, and explicitly notes it does not modify cloud health records. It distinguishes itself from sibling query tools by naming them as cached alternatives. The verb 'download' and resource 'datasets' are specific.

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?

The description explicitly states when to use the tool (when a refresh is needed) and when not to (use cached query tools instead). It also mentions polling with get_sync_status for background syncs, providing clear routing to alternatives.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 15 tool updatesv0.3.4
    • Addedcancel_sync
    • Removedget_daily_summary
    • Changedget_sync_status1 field changed
      • changedInput schema / properties / sync_id / description
        Previous value: -"Opaque ID returned by sync_data with background=true in this running server process; not a workout ID."New value: +"Exact sync_id returned by sync_data or query_sync_history; not a workout ID."
    • Changedquery_abnormal_heart_beat3 fields changed
      • changedInput schema / properties / limit / description
        Previous value: -"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."New value: +"Maximum records per page (1-5000); count describes this page only."
      • addedInput schema / properties / limit / maximum
        Added value: +5000
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Changedquery_body_measurements2 fields changed
      • addedInput schema / properties / limit
        Added value: +{
        +  "default": 5000,
        +  "description": "Maximum records per page (1-5000); count describes this page only.",
        +  "maximum": 5000,
        +  "minimum": 1,
        +  "type": "integer"
        +}
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Addedquery_daily_activity
    • Changedquery_heart_rate4 fields changed
      • changedInput schema / properties / limit / description
        Previous value: -"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."New value: +"Maximum records per page (1-5000); count describes this page only."
      • addedInput schema / properties / limit / maximum
        Added value: +5000
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
      • changedInput schema / properties / sample_type / description
        Previous value: -"Optional exact stored sample type; omit for all. Cloud records normally use resting/active/passive; for workout-window samples use workout_series."New value: +"Optional exact stored sample type; omit for all. Cloud records normally use resting/active/passive; for workout-window samples use query_workout_series."
    • Changedquery_metric_series2 fields changed
      • addedInput schema / properties / limit
        Added value: +{
        +  "default": 5000,
        +  "description": "Maximum records per page (1-5000); count describes this page only.",
        +  "maximum": 5000,
        +  "minimum": 1,
        +  "type": "integer"
        +}
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Changedquery_sleep2 fields changed
      • addedInput schema / properties / limit
        Added value: +{
        +  "default": 5000,
        +  "description": "Maximum records per page (1-5000); count describes this page only.",
        +  "maximum": 5000,
        +  "minimum": 1,
        +  "type": "integer"
        +}
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Changedquery_spo23 fields changed
      • changedInput schema / properties / limit / description
        Previous value: -"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."New value: +"Maximum records per page (1-5000); count describes this page only."
      • addedInput schema / properties / limit / maximum
        Added value: +5000
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Changedquery_stress3 fields changed
      • changedInput schema / properties / limit / description
        Previous value: -"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."New value: +"Maximum records per page (1-5000); count describes this page only."
      • addedInput schema / properties / limit / maximum
        Added value: +5000
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Addedquery_sync_history
    • Addedquery_workout_series
    • Changedquery_workouts2 fields changed
      • addedInput schema / properties / limit
        Added value: +{
        +  "default": 5000,
        +  "description": "Maximum records per page (1-5000); count describes this page only.",
        +  "maximum": 5000,
        +  "minimum": 1,
        +  "type": "integer"
        +}
      • addedInput schema / properties / offset
        Added value: +{
        +  "default": 0,
        +  "description": "Zero-based position; pass pagination.next_offset unchanged with the same filters.",
        +  "minimum": 0,
        +  "type": "integer"
        +}
    • Removedworkout_series
  2. 15 tool updatesv0.3.2
    • Changedget_connection_status1 field changed
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedget_daily_summary14 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / anyOf
        Added value: +[
        +  {
        +    "required": [
        +      "date"
        +    ]
        +  },
        +  {
        +    "required": [
        +      "start_date",
        +      "end_date"
        +    ]
        +  }
        +]
      • addedInput schema / properties / date / description
        Added value: +"Single calendar date YYYY-MM-DD, inclusive; overrides start_date and end_date when supplied."
      • addedInput schema / properties / date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / date / format
        Added value: +"date"
      • addedInput schema / properties / date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedget_data_coverage3 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / data_types / description
        Added value: +"Optional dataset names to inspect; omit or [] for all cached datasets."
      • addedInput schema / properties / data_types / items / enum
        Added value: +[
        +  "daily_activity",
        +  "heart_rate",
        +  "body_measurements",
        +  "sleep",
        +  "workouts",
        +  "spo2",
        +  "stress",
        +  "abnormal_heart_beat"
        +]
    • Changedget_profile1 field changed
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedget_sync_status3 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / sync_id / description
        Added value: +"Opaque ID returned by sync_data with background=true in this running server process; not a workout ID."
      • addedInput schema / properties / sync_id / minLength
        Added value: +1
    • Changedquery_abnormal_heart_beat12 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / limit / default
        Added value: +5000
      • addedInput schema / properties / limit / description
        Added value: +"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."
      • addedInput schema / properties / limit / minimum
        Added value: +1
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_body_measurements12 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / latest_only / default
        Added value: +false
      • addedInput schema / properties / latest_only / description
        Added value: +"Return only the last measurement in this range when true; false returns all matching records."
      • addedInput schema / properties / metrics / description
        Added value: +"Optional body-field projection; timestamp always remains. Omit or [] for all available fields. Missing optional fields are omitted, not zero."
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_heart_rate13 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / limit / default
        Added value: +5000
      • addedInput schema / properties / limit / description
        Added value: +"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."
      • addedInput schema / properties / limit / minimum
        Added value: +1
      • addedInput schema / properties / sample_type / description
        Added value: +"Optional exact stored sample type; omit for all. Cloud records normally use resting/active/passive; for workout-window samples use workout_series."
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_metric_series14 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / aggregation / default
        Added value: +"sum"
      • addedInput schema / properties / aggregation / description
        Added value: +"Reducer over daily values in week/month buckets; ignored for day. latest means last available date; avg excludes missing days. Prefer avg/latest for weight."
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / granularity / default
        Added value: +"day"
      • addedInput schema / properties / granularity / description
        Added value: +"day returns daily values; week groups by Monday; month by first day. Missing days are not zero-filled."
      • addedInput schema / properties / metric / description
        Added value: +"Metric and output units: steps=count, distance_m=meters, active_kcal=kcal, weight_kg=kg."
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_sleep11 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / include_naps / default
        Added value: +true
      • addedInput schema / properties / include_naps / description
        Added value: +"Include naps in raw sessions (default true); main-sleep summary always excludes naps."
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_spo212 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / limit / default
        Added value: +5000
      • addedInput schema / properties / limit / description
        Added value: +"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."
      • addedInput schema / properties / limit / minimum
        Added value: +1
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_stress13 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / level / description
        Added value: +"Optional exact stored stress level: low, medium or high; omit to include all levels."
      • addedInput schema / properties / limit / default
        Added value: +5000
      • addedInput schema / properties / limit / description
        Added value: +"Maximum earliest matching records to return (default 5000); use a small positive value to limit context. No offset/cursor is available."
      • addedInput schema / properties / limit / minimum
        Added value: +1
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedquery_workouts14 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / activity_types / description
        Added value: +"Optional activity labels from stored workouts (e.g. running); case-insensitive. Omit or [] for all; labels depend on device/upstream data."
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / min_distance_km / description
        Added value: +"Minimum workout distance in kilometers, inclusive; 0 or omitted disables this filter. Returned distance uses meters."
      • addedInput schema / properties / min_distance_km / minimum
        Added value: +0
      • addedInput schema / properties / min_duration / description
        Added value: +"Minimum workout duration in minutes, inclusive; 0 or omitted disables this filter."
      • addedInput schema / properties / min_duration / minimum
        Added value: +0
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedsync_data15 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • addedInput schema / properties / background / description
        Added value: +"False waits for results; true starts a process-local task and returns sync_id for get_sync_status polling."
      • addedInput schema / properties / data_types / description
        Added value: +"Dataset names; omitted selects all adapter-supported datasets; [] is invalid."
      • addedInput schema / properties / data_types / items / enum
        Added value: +[
        +  "daily_activity",
        +  "heart_rate",
        +  "body_measurements",
        +  "sleep",
        +  "workouts",
        +  "spo2",
        +  "stress",
        +  "abnormal_heart_beat"
        +]
      • addedInput schema / properties / data_types / minItems
        Added value: +1
      • addedInput schema / properties / end_date / description
        Added value: +"Inclusive last calendar date, YYYY-MM-DD; must be on or after start_date. Omitted: server local today."
      • addedInput schema / properties / end_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / end_date / format
        Added value: +"date"
      • addedInput schema / properties / end_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
      • addedInput schema / properties / force_full_sync / default
        Added value: +false
      • addedInput schema / properties / force_full_sync / description
        Added value: +"Ignore saved sync watermark and re-fetch the requested range; no deletion. If start_date is omitted use configured lookback."
      • addedInput schema / properties / start_date / description
        Added value: +"Inclusive first calendar date, YYYY-MM-DD; must be on or before end_date. Uses stored calendar dates, not caller timezone conversion. Omitted: saved watermark, or configured lookback (default 30 days) if no watermark/force_full_sync=true."
      • addedInput schema / properties / start_date / examples
        Added value: +[
        +  "2026-01-15"
        +]
      • addedInput schema / properties / start_date / format
        Added value: +"date"
      • addedInput schema / properties / start_date / pattern
        Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • Changedworkout_series10 fields changed
      • addedInput schema / additionalProperties
        Added value: +false
      • changedInput schema / properties / max_points / description
        Previous value: -"Hard cap on returned points (server-enforced)"New value: +"Requested maximum returned points (default 400, 1..500); server also clamps direct service calls to this range."
      • addedInput schema / properties / max_points / minimum
        Added value: +1
      • addedInput schema / properties / metric / description
        Added value: +"Only heart_rate is supported; values are beats per minute (bpm)."
      • changedInput schema / properties / reference_max_hr / description
        Previous value: -"Optional caller-provided reference max heart rate (bpm) used to normalize time_in_zone; pass a consistent value when comparing zone distributions across activities"New value: +"Optional positive reference maximum heart rate in bpm for zone normalization; use the same value across compared workouts. Omit to use this workout maximum."
      • addedInput schema / properties / reference_max_hr / minimum
        Added value: +1
      • changedInput schema / properties / resolution / description
        Previous value: -"Requested bucket size in seconds; increased automatically when needed to stay within max_points"New value: +"Requested bucket duration in seconds (default 60, at least 1); automatically increased to fit max_points."
      • addedInput schema / properties / resolution / minimum
        Added value: +1
      • addedInput schema / properties / workout_id / description
        Added value: +"Exact workout_id returned by query_workouts for this account; do not invent an ID."
      • addedInput schema / properties / workout_id / minLength
        Added value: +1
  3. 15 tool updatesv0.3.0
    • First observedget_connection_status
    • First observedget_daily_summary
    • First observedget_data_coverage
    • First observedget_profile
    • First observedget_sync_status
    • First observedquery_abnormal_heart_beat
    • First observedquery_body_measurements
    • First observedquery_heart_rate
    • First observedquery_metric_series
    • First observedquery_sleep
    • First observedquery_spo2
    • First observedquery_stress
    • First observedquery_workouts
    • First observedsync_data
    • First observedworkout_series

TDQS

A4.6/5.0

Scored across 17 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: query_* tools target specific health data types or aggregation levels, while sync lifecycle tools (connection, sync, status, cancel, history, coverage) are well separated. Descriptions explicitly cross-reference related tools to resolve potential overlaps (e.g., metric series vs daily activity vs raw body measurements).

Naming Consistency5/5

All names use consistent snake_case with predictable verb prefixes: get_ for system/status reads, query_ for cached data reads, and sync/cancel for actions. Minor singular/plural variation (query_workouts vs query_workout_series) is semantically meaningful and not confusing.

Tool Count4/5

17 tools is slightly above the typical 3–15 range but justified by the breadth of distinct health metrics and sync management operations. No tool appears redundant; each query tool maps to a unique data type or purpose.

Completeness4/5

The surface covers connection, sync lifecycle, cache coverage, profile, and queries for all major Mi Fitness data types (activity, body, heart rate, sleep, workouts, SpO2, stress, abnormal beats). Minor gaps like sleep stages or workout GPS details may exist, but agents can work around them.

Maintenance

ActivityActive
ResponsivenessWithin a week

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    C
    maintenance
    Enables reading and syncing Xiaomi Mi Fitness health data (steps, heart rate, sleep, workouts) from the Chinese cloud region to a local SQLite database via MCP tools.
    10
    14
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    Downloads all your Garmin health and fitness data into a local SQLite database and exposes 45 MCP tools for AI analysis, enabling assistants to query sleep, training load, HRV, and more.
    48
    165 PyPI
    153
    AGPL 3.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Self-hosted MCP server that syncs Xiaomi fitness data to SQLite and provides authenticated tools to query health metrics (steps, sleep, HR, etc.) for AI assistants like Grok.
    GPL 3.0
  • A
    license
    A
    quality
    A
    maintenance
    MCP server that reads Zepp/Amazfit health and workout data, exposing tools for daily summaries, sleep, heart rate, and workout details to any MCP client.
    8
    3
    MIT