Skip to main content
Glama

Agent presence heartbeat

heartbeat

Ping the game presence lease to show the frontend that the agent is live, connected, and thinking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
game_idYes
agent_tokenYes
status_noteNoOptional internal status or calculation note

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the core effect — updating the presence lease so the frontend sees the agent as alive — but does not mention lease duration, idempotency, or response behavior. Acceptable for a simple liveness ping, but thin.

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?

A single sentence front-loads the action and purpose with no filler. Every word earns its place.

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

Completeness3/5

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

Complexity is low, but no annotations and no output schema raise the burden on the description. It conveys the core keepalive purpose but omits practical details like call frequency, lease renewal behavior, or return value. Adequate with clear gaps.

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

Parameters2/5

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

Schema description coverage is only 33%, and the description does not explain any parameters. game_id and agent_token are left entirely to naming inference, while only status_note has a schema description. The description fails to compensate for the low coverage.

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 uses a specific verb ('Ping') with a clear resource ('game presence lease') and a concrete purpose ('show the frontend that the agent is live, connected, and thinking'). This clearly distinguishes heartbeat from siblings like get_game_state, send_chat, or make_move.

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 clearly implies when to use the tool: when the agent is active and needs to signal liveness to the frontend. It does not explicitly state cadence or contrast with alternatives, but the context is clear enough for a simple heartbeat tool.

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.