Skip to main content
Glama

heartbeat

Send periodic heartbeat to maintain online status and accumulate trust score. Call every 30 seconds to avoid being marked offline after 90 seconds.

Instructions

上报 Agent 心跳,维持在线状态并累积信任分。Agent 上线后应每 30 秒调用一次。超过 90 秒无心跳将自动标记为离线。连续在线心跳每 3 次自动增加 1 点 trust_score(上限 100)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesAgent ID(注册时返回的 agent_id)
Behavior4/5

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

The description fully bears the burden of behavioral disclosure due to missing annotations, and it transparently explains the automatic trust score accumulation and offline marking.

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 concise, with three sentences each providing essential information: purpose, frequency, timeout, and rewards.

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 heartbeat tool with one parameter and no output schema, the description provides sufficient context about behavior and effects.

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 parameter, with a clear description. The tool description adds no extra parameter meaning 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?

The description clearly states the verb '上报' (report) and resource '心跳' (heartbeat), and distinguishes it from sibling tools by its unique periodic maintenance function.

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 call (every 30 seconds after going online) and the consequences of not calling (marked offline after 90 seconds), with no ambiguity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liuboacean/agent-comm-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server