Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

embodiment_get_physics_state

Read-only

Retrieve ground-truth physics state—joint positions, velocities, and free-body poses—from an embodiment controller. Auto-discovers the introspection URL, or accepts an explicit one.

Instructions

GET ground-truth physics state from an embodiment controller.

Works with any controller that exposes GET /v1/state on its introspection server (e.g. MuJoCo, xARM when introspection is enabled). When introspection_url is omitted, the URL is auto-discovered via the descriptor that feagi-desktop writes at controller spawn time. Pass an explicit URL to bypass discovery.

MuJoCo scalar hinge and slide joints are in joints (one qpos and one qvel). Free joints, including the floating root, are in free_joints: position_m is [x, y, z], quaternion_wxyz is [w, x, y, z], linear_velocity_m_s and angular_velocity_rad_s are world-frame. Ball joints are in ball_joints with quaternion_wxyz and angular_velocity_rad_s. Units are meters and radians, the raw MuJoCo state. embodiment_set_joint_state still accepts only scalar joints.

_experiment says whether the Studio experiment is running. When its state is stopped, the controller still answers with the last frame before the stop: do not read a constant time as a frozen simulator.

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

Input Schema

NameRequiredDescriptionDefault
timeout_sNo
controller_idNomujoco
introspection_urlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint=true (which it is consistent with), the description discloses the endpoint contract (GET /v1/state), the auto-discovery mechanism and its source file, the returned groupings (joints, free_joints, ball_joints) with frame conventions and units, and a non-obvious failure mode: a stopped experiment still answers with the last frame. That is substantive behavior an agent could not infer from annotations.

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 discovery semantics are front-loaded, and the stopped-experiment caveat is a well-placed closing warning. The middle paragraph detailing return groupings overlaps with the existing output schema, so some of that prose does not fully earn its space.

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?

For a read tool with an output schema, it covers the essentials: connection/discovery, units, joint-type layout, and a subtle state pitfall. Remaining gaps are minor — controller_id semantics, timeout behavior, and what errors look like when no introspection server is reachable.

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 carry parameter meaning, and it does so well for introspection_url (discovery vs. explicit bypass). But controller_id (default 'mujoco') is never explained — which controllers are valid, or how it interacts with an explicit URL — and timeout_s is not mentioned at all.

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 opening sentence gives a specific verb and resource: 'GET ground-truth physics state from an embodiment controller.' It also implicitly separates this read tool from the write sibling by noting 'embodiment_set_joint_state still accepts only scalar joints,' so an agent knows this is the way to read free/ball joints.

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 clearly states the condition for the key parameter choice: omit introspection_url to auto-discover via the descriptor written at spawn time, or pass an explicit URL to bypass discovery. It also warns not to misread a constant time value when _experiment state is stopped. It does not, however, compare itself against read alternatives such as get_embodiment_status or check_live_state_drift.

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