Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

queue_amalgamation_by_payload

Queues a full genome JSON payload for amalgamation and returns an amalgamation ID for confirmation.

Instructions

Queue an incoming genome for amalgamation (POST /v1/genome/amalgamation_by_payload).

genome_json must be a UTF-8 JSON string of the full genome document (same as POST /v1/genome/upload), not a wrapped object. After success, poll health_check for amalgamation_pending, then call confirm_amalgamation_destination with the returned amalgamation_id and a parent brain_region_id (typically brain_regions_root from health_check).

fit_plan (optional) sets the dimensions the guest's areas are created at, so they are born at the right size on confirm (no later rebuild). Shape: {"areas": [{"cortical_id": "<guest id, base64>", "dimensions": [x, y, z]}]}; every dimension is at least 1, IO areas keep their size, and an invalid plan is refused (400) with nothing queued. circuit_size reflects the fitted sizes. Without it the guest is imported as published. The confirm call is the same either way.

Returns: API response, usually message and amalgamation_id.

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": {
      "genome_json": "<genome_json>"
    },
    "name": "queue_amalgamation_by_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
fit_planNo
genome_jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations and no output schema, the description carries real weight and does disclose that an invalid fit_plan is refused with a 400 and 'nothing queued', that IO areas keep their size, and that the return usually contains message and amalgamation_id. It does not cover permissions/authentication, idempotency or duplicate-queue behavior, or what happens after expiry of a queued amalgamation, which are meaningful gaps for an asynchronous mutation.

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 action and endpoint, then sequencing, then the optional parameter, then returns — a logical order. It is on the long side and the parenthetical endpoint path plus some prose ('The confirm call is the same either way') could be trimmed, but no sentence is filler.

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 two-parameter asynchronous mutation with no annotations or output schema, the description supplies the sequencing, the parameter contract, the failure mode, and the return fields. Remaining omissions (auth requirements, duplicate handling, error codes other than 400) are secondary but keep it short of fully complete.

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 coverage is 0%, so the description has to do all the work, and it does: genome_json is specified as a UTF-8 JSON string of the full genome document and explicitly not a wrapped object, and fit_plan is given a literal shape with field names plus invariants (dimensions >= 1, IO areas fixed, invalid plans rejected). This meaningfully exceeds the bare schema's anyOf object.

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 ('Queue an incoming genome for amalgamation') and pins it to the endpoint POST /v1/genome/amalgamation_by_payload. It also explicitly distinguishes itself from the sibling upload call by saying genome_json is 'the same as POST /v1/genome/upload', so an agent can tell which call to make.

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 a complete post-call workflow: poll health_check for amalgamation_pending, then call confirm_amalgamation_destination with the returned amalgamation_id and a parent brain_region_id. It also states the conditional behavior of fit_plan (with vs. without) and that 'the confirm call is the same either way', removing ambiguity about alternatives.

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