Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

diagnose_feagi_runtime

Read-only

Identify the likely cause of a dead or stalled FEAGI process by checking local logs, HTTP log tail, health probe, and last failed mutation when standard health checks time out or fail.

Instructions

Diagnose a dead or stalled FEAGI process without dumping logs.

Local-first: reads FEAGI_LOG_FILE (if set), then the latest desktop feagi-core.log, then neurorobotics-studio.log. When those have no FEAGI markers and HTTP answers, classifies /v1/system/log_tail. Health probe uses FEAGI_PROBE_TIMEOUT_SECONDS so a dead process does not consume the full HTTP timeout. When HTTP answers, also attaches last_failed_mutation from /v1/system/last_failed_mutation. Returns paths_checked.

Use this instead of health_check + get_log_tail when:

  • health_check times out or the connection is refused

  • a sensory start failed with "FEAGI is unresponsive"

  • the FEAGI process exited (SIGTERM / zsh: terminated)

  • injection reports unknown cortical areas

  • the NPU watchdog reports a stall

  • upload/load failed but health still looks fine (check last_failed_mutation)

Returns a compact likely_cause plus evidence events.

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

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.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, but the description discloses the actual runtime behavior: the ordered local log resolution strategy (FEAGI_LOG_FILE, then feagi-core.log, then neurorobotics-studio.log), the fallback to /v1/system/log_tail, the FEAGI_PROBE_TIMEOUT_SECONDS budget that prevents a dead process from consuming the full HTTP timeout, and the extra last_failed_mutation attachment when HTTP answers. That is substantive operational context an agent could not get from the annotation.

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?

Purpose and local-first resolution order are front-loaded and the trigger list is bulleted for scanning. It is dense and slightly long, and the leading log-path enumeration could be trimmed since the return value already reports paths_checked, but nearly every clause carries operational information.

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?

An output schema exists, so return formatting need not be spelled out, yet the description still previews the payload (a compact likely_cause plus evidence events, plus paths_checked). For a parameterless, read-only diagnostic tool, the definition covers purpose, invocation conditions, side channels, and timeouts completely.

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 parameters, so there is no schema surface to compensate for; baseline is 4. The description adds useful implicit-config semantics by naming the FEAGI_LOG_FILE and FEAGI_PROBE_TIMEOUT_SECONDS environment variables that shape behavior, which goes beyond an empty argument object.

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 verb+resource ("Diagnose a dead or stalled FEAGI process") plus a scope constraint ("without dumping logs"), and explicitly contrasts itself with the sibling pair health_check + get_log_tail. An agent can distinguish it from those siblings without opening any schema.

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?

Provides an explicit "use this instead of health_check + get_log_tail when:" block with six concrete triggering conditions (probe timeout/connection refused, "FEAGI is unresponsive" on sensory start, SIGTERM exit, unknown cortical areas on injection, NPU watchdog stall, failed upload with healthy health). Both the alternative and the selecting conditions are named, leaving nothing to inference.

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