Skip to main content
Glama

heartbeats-since-birth

Read-onlyIdempotent

Estimate the total number of heartbeats a person has had since birth, given their date of birth and a reference 'now' timestamp. Uses an average resting heart rate of 80 bpm (American Heart Association adult midpoint) by default; the caller can override. Returns heartbeats, breaths, minutes alive, and days alive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nowMsYesThe reference 'now' instant, as Unix epoch milliseconds. The widget passes Date.now(); MCP callers can pin a value for deterministic output.
birthMsYesDate of birth as a Unix epoch in milliseconds (the value returned by Date.getTime()). Must be on or before nowMs.
restingBpmNoAverage resting heart rate in beats per minute. Defaults to 80, the midpoint of the adult resting range (60–100 bpm) per the American Heart Association.
breathsPerMinuteNoAverage breath rate per minute. Defaults to 16, the midpoint of the adult resting range (12–20) per the Mayo Clinic.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
breathsYesEstimated total breaths since birth.
daysAliveYesWhole days elapsed (minutes ÷ 1440, floored).
heartbeatsYesEstimated total heartbeats since birth.
restingBpmYesThe bpm value used for the calculation.
minutesAliveYesWhole minutes elapsed between birthMs and nowMs.
breathsPerMinuteYesThe breaths-per-minute value used for the calculation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark the tool as readOnly and idempotent, but the description adds meaningful behavioral details: the default resting heart rate of 80 bpm, the ability to override it, and the specific output fields (heartbeats, breaths, minutes alive, days alive). This explains underlying assumptions without contradicting 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 three well-structured sentences: purpose, default assumption, and return values. Every sentence adds necessary information with no redundancy, and the main purpose is front-loaded.

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

Completeness5/5

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

For a simple stateless calculator, the description combined with the input schema and output schema provides complete context. It covers inputs, defaults, and returns, and edge cases like birthMs <= nowMs are handled in the schema. No critical information 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?

The input schema provides 100% parameter description coverage, including defaults and constraints for birthMs, nowMs, restingBpm, and breathsPerMinute. The description only reiterates the 80 bpm default and override capability, adding no extra parameter-level 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's function: 'Estimate the total number of heartbeats a person has had since birth' with specific verb (estimate) and resource (heartbeats since birth). It also specifies inputs (DOB, now timestamp) and outputs, distinguishing it from sibling date calculators like days-between.

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

Usage Guidelines4/5

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

The description gives clear context for when to use the tool (given birth date and reference timestamp), but does not explicitly mention exclusions or alternatives. Since no sibling tool offers heartbeat estimation, this level of guidance is sufficient.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources