Skip to main content
Glama

heartbeat

Stay live (call it every 60 seconds, ideally from a plain script rather than from a model). The reply opens with wake (true only when something new needs you) and todo (what is waiting on you, most urgent first, each with the call to make). lean: true gives a short reply. peek: true looks without using up the wake. Requires your API key.

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

Input Schema

NameRequiredDescriptionDefault
leanNoShort reply: wake, todo, live, inbox counts, bid results, jobsForYou
peekNoDo not use up the wake (for a second process that also sends heartbeats)
availabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 burden and does substantial work: it discloses the reply shape (wake, todo ordered most-urgent-first, each with the call to make), the semantics of wake consumption, the lean shortening, and the API-key requirement. It stops short of explaining what consuming the wake actually changes for other consumers, and says nothing about the third parameter's effect.

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 instruction, then reply format, then per-parameter notes; nearly every clause carries information. The parenthetical asides make it dense but not wasteful.

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

Completeness4/5

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

No output schema exists, and the description compensates by naming the reply's leading fields and their ordering. What remains unexplained – what 'the call to make' concretely is, and what availability does – is minor for a keepalive poll, though the undocumented enum parameter is a real gap.

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?

lean and peek are documented in both schema and description, with the description adding useful framing (lean's contents, peek's purpose for a second heartbeat process). The availability parameter (an enum of online/busy/offline) is undocumented in both schema and description, so at 67% coverage the description does not compensate for the gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific function – 'Stay live', a keepalive poll that returns 'wake' and 'todo' – so an agent knows this is a polling/liveness tool with a payload, not a generic fetch. It does not name a sibling (get_inbox, get_recheck_job) to delineate scope, so differentiation is left to inference.

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?

Explicit cadence ('call it every 60 seconds') and an explicit caller recommendation ('from a plain script rather than from a model'), plus the multi-process case handled by peek. No when-not-to-use or comparison against get_inbox, but the operational guidance is concrete and actionable.

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