Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

measure_balance

Measure balance outcomes from the simulator—reset count, episode length, upright fraction, tilt histogram, recoveries, and falls—so you can quantify controller stability over a sampling window.

Instructions

Balance outcome numbers from the simulator: episodes, upright time, tilt, falls.

Samples the controller's GET /v1/state at 20 Hz for up to 25 s (the MCP transport times out near 60 s; make longer windows with repeated calls and keep the window_id of each). A drop of the simulator clock is a scene reset; the clock just before the drop is that episode's length. Tilt is the angle between the trunk's up axis and world up, from the trunk free joint's quaternion (pitch_deg and roll_deg are also sampled).

Returns numbers only: reset_count, episode_length_s (ended episodes, mean/median/max, ongoing), upright_fraction (tilt at or below upright_deg), a 10-degree tilt histogram, recoveries (tilt above upright_deg then back below it within one episode), falls (crossings of fall_deg) and fall_confirmation_latency_s (first crossing of fall_deg to the reset). free_joint picks the trunk joint when auto-detection fails. Check _experiment first: a stopped experiment serves one frozen frame.

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

Input Schema

NameRequiredDescriptionDefault
fall_degNo
duration_sNo
free_jointNo
upright_degNo
controller_idNomujoco
introspection_urlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the sampling rate and duration ceiling, the transport timeout that motivates it, how scene resets are detected via simulator-clock drops, and how episode length is derived. It also covers the auto-detection fallback for `free_joint` and the degraded behavior when the experiment is stopped, which are non-obvious traits an agent would otherwise discover only by failing.

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 one-line purpose, then progressively deeper detail, and nearly every sentence adds a fact an agent needs (timeout, reset semantics, return fields). It is dense and somewhat long, with multi-clause sentences, but no filler or repetition.

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 enumerated return fields are a bonus rather than a necessity, and the definition still covers the tricky ones (`recoveries`, `fall_confirmation_latency_s`). Combined with reset/timeout semantics and the stopped-experiment caveat, an agent has enough to call it correctly; only the meaning of `controller_id` and `introspection_url` is left unaddressed.

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?

Schema description coverage is 0%, so the description must compensate, and it explains the three most semantically loaded parameters: `upright_deg` (the tilt threshold defining upright fraction and recoveries), `fall_deg` (the crossing level that counts as a fall), and `free_joint` (used when auto-detection of the trunk joint fails). `duration_s` is implied by the 25 s window cap, but `controller_id` and `introspection_url` are never mentioned, leaving a real gap.

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 names a specific resource (balance outcome metrics from the simulator) and enumerates exactly what is measured: episodes, upright time, tilt, falls. The second paragraph grounds it in a concrete mechanism (polling `GET /v1/state` at 20 Hz) so an agent can distinguish it from siblings like `measure_audio_io_disparity` or `check_live_state_drift` without opening the schema.

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 explicit operational guidance: the 25 s window cap exists because the MCP transport times out near 60 s, and longer measurement windows should be composed from repeated calls while retaining each `window_id`. It also states a prerequisite, 'Check `_experiment` first', with the consequence that a stopped experiment serves one frozen frame. It does not name alternative tools for related measurement tasks, so it falls short of a 5.

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