Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

create_morphology

Define a custom FEAGI morphology for transforms that core connectivity rules cannot express, using vectors, patterns, functions, or composite parameters.

Instructions

Create a custom morphology. Call propose_connectivity_rule first.

Prefer an existing core rule (block_to_block, projector, lateral_+z, all_to_all) via recommend_connectivity_rules / apply_connectivity_rule. Create a custom morphology only when no core rule expresses the transform.

patterns rows are [[src_x, src_y, src_z], [dst_x, dst_y, dst_z]] using the FEAGI pattern language (*, ?, !, ?+, ?-, ?+=, ?-=, ?+N, ?-N, ?-A:?+B, or exact integers). Source-side relative tokens do not filter; only * and exact integers select sources.

Do not enumerate exact voxel pairs for a regular transform. A dump that collapses to one offset is rejected.

On a PositionalServo absolute OPU, dest z=0 is max command. Do not use ?+17 / high Z for muscle excitation.

Args: morphology_name: Unique name for this morphology morphology_type: vectors, patterns, functions, or composite morphology_parameters: Type-specific parameters: - vectors: {"vectors": [[dx, dy, dz], ...]} - patterns: {"patterns": [[[src], [dst]], ...]}

Examples: Identity: {"vectors": [[0, 0, 0]]} or {"patterns": [[["*", "*", "*"], ["?", "?", "?"]]]}

Z offset: ``{"vectors": [[0, 0, 17]]}`` or
``{"patterns": [[["*", "*", "*"], ["?", "?", "?+17"]]]}``

One motor channel at max command:
``{"patterns": [[[382, "*", "*"], ["?", "?", 0]]]}``

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": {
      "morphology_name": "<morphology_name>",
      "morphology_type": "<morphology_type>",
      "morphology_parameters": "<morphology_parameters>"
    },
    "name": "create_morphology"
  }
}

Input Schema

NameRequiredDescriptionDefault
morphology_nameYes
morphology_typeYes
morphology_parametersYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses that source-side relative tokens do not filter, that enumerating exact voxel pairs for a regular transform is rejected, and that a collapsed single-offset dump is rejected, plus the PositionalServo 'z=0 is max command' constraint. Gaps remain on persistence, permissions, and mutation/reversibility semantics, so not a 5.

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 imperative and the routing preference before syntax details, and the example block is genuinely load-bearing for an unusual pattern language. It is long but mostly earns its space, with mild redundancy between the prose token list and the examples.

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 return values needn't be described, and the description covers the hard parts: pattern token grammar, source/destination asymmetry, validation rejections, and hardware-specific Z caveats. Completeness is undercut only by the undocumented 'functions' and 'composite' parameter forms, which an agent could plausibly need to call correctly.

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 compensate and largely does: it defines morphology_name, enumerates the four morphology_type values (vectors, patterns, functions, composite), and gives type-specific morphology_parameters shapes with worked examples. The only shortfall is that the 'functions' and 'composite' parameter shapes are never spelled out.

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?

Opens with a specific verb+resource ('Create a custom morphology') and immediately distinguishes it from the core-rule path handled by recommend_connectivity_rules / apply_connectivity_rule. An agent can tell exactly which tool creates a bespoke transform versus which one applies a stock one.

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?

Gives explicit ordering ('Call propose_connectivity_rule first'), an explicit preference (use a core rule such as block_to_block, projector, lateral_+z, all_to_all), and an explicit exclusion condition ('Create a custom morphology only when no core rule expresses the transform'). This is a full when/when-not/alternative routing statement.

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