Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

record_aligned_trace

Records time-aligned traces pairing per-area neural burst firing with simulator physics and actuator targets, saving JSONL rows and returning compact run-length summaries for debugging.

Instructions

One timeline pairing each sampled burst with the simulator's physics at that moment.

Polls /v1/burst_engine/fire_queue/detailed (burst number in timestep, filtered to areas) together with the controller's GET /v1/state for up to 20 s and at most 64 areas. The full trace is written to <feagi-mcp>/var/traces/<trace_id>.jsonl (absolute trace_path in the result; override the directory with FEAGI_MCP_TRACES_DIR) (one row per burst: fired voxels per area, clock, pitch, roll, tilt, trunk z, actuator ctrl targets for signals, all actuators when signals is omitted).

The return value is compact: per area, run-length encoded bursts on which it fired with the physics and targets at the start of each run, so "tilt bin fired at burst N, nudge voxel at N+2, pitch changed at N+6" is readable without the file. bursts_missed_by_sampler counts engine bursts the FEAGI sampler did not publish (it runs near 30 Hz). For burst-exact firing recorded from a body/brain reset, use Studio's run_embodiment_trial(areas=...).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "duration_s": "<duration_s>",
      "areas": "<areas>"
    },
    "name": "record_aligned_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
areasYes
signalsNo
duration_sYes
free_jointNo
controller_idNomujoco
introspection_urlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the polling window (up to 20 s), a hard limit (at most 64 areas), the side effect of writing <feagi-mcp>/var/traces/<trace_id>.jsonl with an env-var override, and the meaning of bursts_missed_by_sampler as a data-quality caveat. It even explains that the inline return is run-length encoded rather than the raw rows, which prevents misreading the result.

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?

The core claim is front-loaded in the first sentence, and subsequent sentences each carry new information. It is dense with nested parentheticals (the file-path parenthetical itself contains a second parenthetical), which makes parsing slightly harder than necessary, but little is genuinely redundant.

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

Completeness4/5

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

An output schema exists, so the description does not need to spell out return values, yet it still usefully characterizes the compact RLE form and the missed-burst counter. The remaining gap is the undocumented free_joint and introspection_url parameters on a six-parameter tool, which an agent would have to infer from the schema alone.

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 description coverage is 0%, so the description must compensate and it only partly does: it explains areas as a filter, signals as selecting actuator ctrl targets (all actuators when omitted), and duration_s as bounded by the 20 s window. free_joint and introspection_url get no mention at all, and controller_id is only obliquely implied by the 'controller's GET /v1/state' phrasing and the default machinery, leaving roughly half the parameters unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific artifact ('one timeline pairing each sampled burst with the simulator's physics') and the body specifies exactly what is captured per row: fired voxels per area, clock, pitch/roll/tilt, trunk z, and actuator ctrl targets. It also distinguishes itself from a related capability by pointing at Studio's run_embodiment_trial(areas=...) for burst-exact reset trials, though that alternative is external rather than one of the listed siblings.

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?

It gives one explicit routing rule: use run_embodiment_trial for burst-exact firing recorded from a body/brain reset, implying this tool is for sampled/timeline correlation instead. It also implies prerequisites by describing the two endpoints polled and the near-30 Hz sampler, but it never states when this tool is the wrong choice beyond that single case.

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