Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

convert_io_value

Read-only

Convert an I/O channel's bin, fraction, or physical value into the other representations using registered device units and physical range; returns bin, fraction, value, and unit.

Instructions

Convert one I/O channel's z bin, fraction or physical value into the others (read-only).

Pass exactly one of bin, fraction (0..1) or value. The bin rule is FEAGI's own coder (feagi_rust_py_libs) bound to the unit the agent's device registration states for the area, for OPU and IPU areas and every percentage variant it supports; this is the same rule build_stance_relative_mapping and send_motor_command use. The physical value comes only from the channel's registered physical_range; without one the answer has value null and unit unknown, and a value input is an error. A registered controller is needed (no registration, no coding variant).

Args: area: OPU or IPU area id or exact display name. channel: Channel index (the x position of the channel in the area). bin: z bin to convert (0..depth-1). fraction: Decoded fraction 0..1 to convert to the nearest bin. value: Physical value to convert (needs the registered physical_range; clamped). agent_id: Agent whose registration states the unit; when omitted, the one registered agent that drives the area is used (several differing agents is an error).

Returns: variant, depth, physical_range, bin, fraction (what the bin decodes to), value and unit; a fraction or value input also returns requested_fraction / requested_value. Two-lobe variants return z_positive / z_negative instead of one bin. An Incremental servo area (coding_behavior of the area) is not a position: it returns framing and semantics step, p (the column magnitude; fraction repeats it), columns (role, x, step_fraction = +/-p*step, step_value), step_size_0_1 and step_size_source, with value and unit null. Incremental pointer areas add framing and semantics velocity.

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": {
      "area": "<area>",
      "channel": "<channel>"
    },
    "name": "convert_io_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
binNo
areaYes
valueNo
channelYes
agent_idNo
fractionNo

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?

Consistent with readOnlyHint=true and explicitly restates '(read-only)'. Beyond the annotation it discloses real failure behaviour: a value input is an error without a registered physical_range (answer returns value null and unit 'unknown'), several differing registered agents is an error, and Incremental servo/pointer areas are not positions and instead return framing/semantics/columns payloads. This is substantial behavioural context the annotations do not carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the 'exactly one of' constraint are front-loaded, which is good, but the Returns block runs long and enumerates field names already present in the output schema, so it partly duplicates structured data. The prose is dense and jargon-heavy (z_positive/z_negative, step_size_source) without much signposting.

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 six-parameter, schema-undocumented, behaviourally branchy conversion tool the description covers prerequisites, error cases and the incremental-area special case well. Since an output schema exists, the exhaustive return-field listing is optional rather than compensating, so the only shortfall is the absence of sibling/alternative routing.

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 description coverage is 0%, so the description must carry the full burden and it does: all six parameters are explained, including ranges (bin 0..depth-1, fraction 0..1), the area/channel relationship ('channel index is the x position of the channel in the area'), and the non-obvious agent_id fallback and multi-agent error condition. Meaning well beyond the bare type declarations.

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?

Opens with a specific verb, resource and scope: 'Convert one I/O channel's z bin, fraction or physical value into the others (read-only).' An agent knows exactly what operation is performed and that it is a pure conversion. It does not distinguish itself from a plausibly overlapping sibling such as expand_value_to_bins; the named siblings (build_stance_relative_mapping, send_motor_command) are cited as consumers of the same rule, not as alternatives.

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 a hard usage constraint up front ('Pass exactly one of bin, fraction (0..1) or value') and a prerequisite ('A registered controller is needed (no registration, no coding variant)'), plus the agent_id omission rule. It lacks explicit when-not or alternative-tool guidance, which keeps it below 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