Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

set_port_encoding

Set or clear a brain region port's author encoding when no IO area feeds it directly; clear it to resume wiring-based derivation.

Instructions

Set or clear the author encoding of a designated port of a brain region.

FEAGI derives a port's encoding from IO areas wired directly across the region boundary (source: wiring); set one only for a port no IO area feeds directly. An author entry is never overwritten by wiring. clear=True removes it so derivation resumes. The area must already be a designated input or output (409 otherwise). Read entries under port_encoding in get_brain_regions or get_region_circuit.

Args: region_id: Brain region id (from get_brain_regions). area: Designated port area id or exact name. kind: Data type: Boolean, Percentage, Percentage2D/3D/4D, SignedPercentage, SignedPercentage2D/3D/4D, CartesianPlane, Misc or PoseEstimation. signed: Whether negative values are allowed. frame: Absolute (value) or Incremental (change). positioning: Linear or Fractional (bin layout). clear: Remove the author entry; no other field may be given.

Returns: {region_id, area_id, cleared, port_encoding}: the region's resulting entry for the port (kind, signed, frame, positioning, source), or null.

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": {
      "region_id": "<region_id>",
      "area": "<area>"
    },
    "name": "set_port_encoding"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYes
kindNo
clearNo
frameNo
signedNo
region_idYes
positioningNo

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?

With no annotations, the description carries the full burden and does disclose key behavior: the wiring-precedence rule, the 409 error for undesignated areas, and the mutual exclusivity constraint that no other field may accompany ``clear``. It stops short of stating persistence (whether the author entry survives a save/rebuild), required permissions, or idempotency of repeated identical calls.

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?

Behavioral rules are front-loaded in a compact paragraph, then Args and Returns are cleanly separated. Slight redundancy: the Returns block restates what the existing output schema already provides, making it the least load-bearing section.

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 7-parameter mutation with no annotations and an output schema present, the definition covers the preconditions, the encoding-source conflict rule, the error code, and per-parameter domains. Remaining gaps are secondary — persistence scope across saves and permission requirements.

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% and there are no enums, so the description must supply meaning — and it does, enumerating the valid ``kind`` tokens, the Absolute/Incremental values for ``frame``, Linear/Fractional for ``positioning``, and the constraint that ``clear`` forbids other fields. It does not explain accepted alias formats for ``area``/``region_id`` or the type coercion rules for ``signed``.

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 first sentence names a specific verb and resource: set/clear the *author* encoding of a *designated port* of a brain region. The follow-up distinguishes author entries from wiring-derived entries (``source: wiring``), so an agent can tell this apart from circuit/IO-area configuration tools without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the exact precondition for use ('set one only for a port no IO area feeds directly'), the exclusion ('an author entry is never overwritten by wiring'), the clear path ('``clear=True`` removes it so derivation resumes'), and the failure mode ('The area must already be a designated input or output (409 otherwise)'). It also routes the agent to get_brain_regions/get_region_circuit for reading entries.

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