Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

compute_io_cortical_id

Read-only

Compute the canonical base64 IPU/OPU cortical id and config flag for a sensorimotor IO unit from its subtype, variant, framing, and indices, without probing a live brain.

Instructions

Derive the canonical 8-byte IPU/OPU cortical id for a sensorimotor unit (no live call).

Mirrors the Rust feagi-sensorimotor id derivation so a caller (e.g. a Trainer binding profile, or before create_cortical_area) gets the exact base64 wire id and configuration flag a count/percentage IO unit resolves to — without probing a live brain or reverse- engineering bytes. This is the inverse of decode_cortical_id.

Args: subtype: 4-char cortical_subtype (e.g. icnt count input, ocnt count output); first char selects input (i) vs output (o). variant: Configuration variant (default percentage; also boolean, percentage_2d/3d/4d, signed_percentage*, cartesian_plane, misc). framing: absolute or incremental. positioning: linear or fractional (percentage-family variants only). unit_index: Device / group instance index (bytes 6-7 little-endian u16). subunit_index: Sub-area index within the unit (flag bits 4-7, 0-15).

Returns: {"ok": True, "cortical_id": <base64>, "config_flag": <int>, ...} or {"ok": False, "error": ...}.

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": {
      "subtype": "<subtype>"
    },
    "name": "compute_io_cortical_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
framingNoabsolute
subtypeYes
variantNopercentage
unit_indexNo
positioningNolinear
subunit_indexNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description adds real value beyond that: it confirms no live call is made, says it mirrors the Rust feagi-sensorimotor derivation for exactness, and describes the success/failure result shape including an error field. It stops short of stating determinism guarantees across versions or validation failure modes for invalid subtype/variant combinations.

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 followed by scoping and then a structured Args/Returns block, so it is easy to scan. Slightly verbose in the middle sentence, but every clause adds usable information about parity with the Rust implementation.

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?

For a 6-parameter pure-computation tool with no annotations beyond readOnlyHint, the description supplies semantics for every parameter, the byte-level encoding rationale, and the return contract. Though an output schema exists, the description remains complete enough that an agent could call it correctly on the first try.

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 carries the full burden and does so: each of the six parameters gets meaning, example values (icnt/ocnt), default values, allowed value families, and even byte-level placement (unit_index = bytes 6-7 LE u16, subunit_index = flag bits 4-7, range 0-15). This is far beyond what the bare schema provides.

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: derive the canonical 8-byte IPU/OPU cortical id for a sensorimotor unit. It also scopes it as an offline computation ("no live call") and names its inverse, decode_cortical_id, plus the sibling it precedes (create_cortical_area), so it is distinguishable 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 concrete when-to-use contexts (a Trainer binding profile, or before create_cortical_area) and explicitly says it avoids probing a live brain or reverse-engineering bytes. It does not state when NOT to use it (e.g. use decode_cortical_id instead when going from bytes to name), but the inverse relationship is implied strongly enough.

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