Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

get_agent_liveness

Read-only

Diagnose agent disconnects by showing each registered agent's inactivity countdown and last activity ages, revealing missed heartbeats, sensory-only keepalive, or transport faults.

Instructions

How close each registered agent is to being deregistered for inactivity.

Registration does not mean an agent stays connected. FEAGI removes any agent that sends nothing to FEAGI for heartbeat_timeout_s (data FEAGI pushes to the agent never counts), and that teardown drops the agent's motor and visualization publishers, which closes its sockets. The client then reconnects and registers again under a new agent ID.

Use this whenever an agent or the Brain Visualizer disconnects on a regular period. It separates two causes that otherwise look identical from outside:

  • prune_in_s counting down to 0 and the agent vanishing means FEAGI reaped it for inactivity; the client is not sending heartbeats.

  • last_command_control_age_s climbing while last_activity_age_s stays low means the agent sends no heartbeat or command but is streaming sensory data to FEAGI, which keeps it alive; it will drop once that stream stops.

  • An agent disappearing while prune_in_s is still large points at the transport, not at liveness.

Returns: heartbeat_timeout_s, stale_check_interval_s, count, and agents with per-agent ages and countdown. On HTTP 404 this FEAGI build does not expose the route; the payload lists use_instead tools and does not invent prune ages.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint annotation: it explains the timeout semantics ('heartbeat_timeout_s'), the non-obvious rule that FEAGI-pushed data does not count, the teardown effect on motor/visualization publishers and sockets, and the re-registration under a new agent ID. It also discloses the HTTP 404 degradation behavior and that prune ages are not fabricated in that case.

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 question, then the mechanism, then the diagnostic triage list — a logical structure. It is long, and the Returns paragraph partly duplicates the output schema, but every sentence carries non-redundant operational meaning.

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?

Complete for a no-parameter read tool: annotations cover safety, an output schema covers field shapes, and the description still adds the causal model, the triage logic, and error-path behavior. Nothing an agent needs in order to call or interpret it is missing.

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

Parameters4/5

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

Zero input parameters, so there is nothing for the description to disambiguate; the baseline applies. The description instead spends its space on return-field semantics, which is appropriate here.

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, distinctive resource (per-agent countdown to inactivity deregistration) with a precise verb-like framing. An agent can tell this apart from siblings like get_agent_properties or get_agent_connection_endpoints because the description names the exact metric being reported.

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?

Gives a concrete trigger: 'Use this whenever an agent or the Brain Visualizer disconnects on a regular period,' and then supplies three diagnostic branches for interpreting the result, which effectively tells the caller which scenario each tool output corresponds to. It stops short of naming sibling alternatives or stating when not to use it (e.g., for transport-level diagnosis).

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

Deploy Server

Other Tools