Skip to main content
Glama

withings_get_heart

Retrieve live ECG recordings and atrial fibrillation detection results from Withings devices, including timestamps, AFib classification, and heart rate for a specified date range.

Instructions

Get ECG recordings and atrial fibrillation detection results.

Always fetched live from the Withings API (not cached due to large signal data). Requires a Withings device with ECG capability (ScanWatch, BPM Core).

Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d". Default: 30 days back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today.

Returns ECG recording list with timestamps, AFib classification (negative/positive/inconclusive), and heart rate. Does not include raw signal waveforms. For resting heart rate trends, use withings_get_body or withings_get_sleep instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "withings_get_heart"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNo
start_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "withings_get_heartOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that data is always fetched live rather than cached (with the reason: large signal data), which implies latency, and it warns that raw signal waveforms are not included. It does not address authentication requirements or rate limits, which is the main remaining gap for a live-API read tool.

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?

Front-loaded with the core purpose, then behavioral context, then parameter docs, then an explicit exclusion and alternative. Every sentence carries information the schema or annotations do not — nothing is restated from structured fields.

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 shape (ECG recording list with timestamps, AFib classification categories, heart rate) and explicitly stating what is excluded (raw waveforms). For a two-parameter read tool this leaves no meaningful ambiguity.

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 description coverage is 0%, so the description must compensate entirely, and it does: both start_date and end_date are documented with accepted formats ("YYYY-MM-DD", "YYYY-MM", "30d"/"Nd"), month-to-last-day interpretation, and defaults. An agent could construct correct values without ever seeing 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 and resource: fetch ECG recordings and atrial fibrillation detection results from Withings. This is immediately distinguishable from siblings like withings_get_body and withings_get_sleep, which the description explicitly names as being for resting heart rate instead.

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?

Provides the prerequisite (a Withings device with ECG capability, naming ScanWatch and BPM Core) and explicitly redirects the agent to withings_get_body or withings_get_sleep when the goal is resting heart rate trends rather than ECG/AFib data. That is a concrete when-to-use versus when-to-use-something-else routing rule.

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