Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

get_log_tail

Read-only

Read recent FEAGI log records from the in-process ring buffer, filtered by severity, target, timestamp, or message substring for runtime debugging.

Instructions

Recent FEAGI log records (/v1/system/log_tail).

Reads the in-process tracing ring buffer maintained by feagi-observability. Returns enabled=False when the running FEAGI build never installed the buffer or FEAGI_LOG_RING_BUFFER_CAPACITY is set to 0; in that case the response carries a hint describing how to turn it on. An enabled=False result will not change on retry — read the FEAGI process stdout instead.

Always pass message_contains when looking for a specific event (isvi, SegmentedVision, auto-create). An unfiltered dump is large and hides the matching lines.

Args: level: Minimum severity (TRACE/DEBUG/INFO/WARN/ERROR). target_prefix: Restrict to tracing targets starting with this prefix (e.g. feagi_npu or burst_loop). since_ts_ms: Unix-ms cutoff; only returns records emitted at or after this timestamp. limit: Cap on returned record count (most recent records win). Default 200, at most 1000. The reply is also capped at about 60 KB and long messages are clipped; truncated says when that happened. message_contains: Case-insensitive substring of the log message. Applied on FEAGI and again locally so the agent never receives an unfiltered ring dump.

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_log_tail"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNo
limitNo
since_ts_msNo
target_prefixNo
message_containsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint, and the description adds substantial behavior beyond that: the enabled=False path with a `hint`, the fact that retrying is futile, the ~60 KB response cap with message clipping and a `truncated` flag, and the 1000-record ceiling with most-recent-wins ordering. The `FEAGI_LOG_RING_BUFFER_CAPACITY=0` condition further explains when the buffer is absent.

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?

Well front-loaded: behavior and the critical filter warning precede the Args block, and every parameter line carries facts absent from the schema. It is on the long side, with a few explanatory clauses ('so the agent never receives an unfiltered ring dump') that restate an already-made point, but nothing is misleading or padded.

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 values need not be spelled out, yet the description still flags the two states an agent must react to (`enabled=False` and `truncated`). For a read-only, no-required-parameter log query, nothing needed to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the whole burden and does so: it enumerates valid `level` severities, gives `target_prefix` examples (`feagi_npu`, `burst_loop`), defines `since_ts_ms` as an inclusive Unix-ms cutoff, specifies `limit` default 200 / max 1000, and explains `message_contains` is a case-insensitive substring applied both server-side and locally.

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 and resource ('Recent FEAGI log records', endpoint `/v1/system/log_tail`) and identifies the underlying data source (the in-process tracing ring buffer maintained by feagi-observability). That is enough to distinguish it from the many sibling `get_*` tools that return status, config, or geometry rather than log lines.

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?

Gives an explicit positive rule ('Always pass message_contains when looking for a specific event') with concrete example terms, and an explicit negative consequence ('An unfiltered dump is large and hides the matching lines'). It also tells the agent what to do when the tool is unusable: an `enabled=False` result will not change on retry, so read the FEAGI process stdout instead.

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