Skip to main content
Glama

Calera Infinite Context (ICX) — Persistent Memory & Associative Recall

Multi-Agent Swarm Shared State

icx_swarm_state

Manages the persistent shared variable namespace (V_t) and mutex leases for collaborative swarms of autonomous agents (Cursor, Claude, Cline, OpenDevin). Reads, writes, or atomic CAS-swaps typed state objects (AST graphs, data tables, audit flags) without prompt re-serialization. Mutating/read operation. Requires X-License-Key authentication.

Input Schema

NameRequiredDescriptionDefault
keyNoVariable or lock resource key (required for get, set, swap, delete, lock operations).
valueNoValue payload to store (for set or swap operations; can be JSON string or text).
agent_idNoAgent identifier for provenance tracking and lease ownership (e.g. 'agent_architect').
space_idNoOptional memory space partition (default: 'default').
operationYesThe operation to perform: 'get', 'set', 'swap', 'list', 'delete', 'acquire_lock', 'release_lock'.
expected_versionNoExpected version integer for atomic Compare-And-Swap ('swap' operation).

Output Schema

NameRequiredDescriptionDefault
errorNodescription=Error details if operation failed
statusYesdescription=Operation status (ok | error)
swappedNodescription=True if atomic CAS succeeded
variableNodescription=Target variable details
operationYesdescription=Action performed (get | set | swap | list | lock)
variablesNodescription=List of variables in space for list operation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Adds real context beyond the sparse readOnlyHint:false annotation — discloses X-License-Key authentication, atomic CAS semantics, mutex lease ownership via agent_id, and that values are stored without prompt re-serialization. It honestly labels itself 'Mutating/read operation' consistent with readOnlyHint:false. It stops short of describing lease expiry or failure behavior on version mismatch.

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?

Three tight sentences, front-loaded with the resource and capability. Some novelty jargon ('V_t') is used without definition, but overall there is little waste for the complexity conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-operation remote-state tool with an output schema, the description covers auth and atomicity but omits lock lifecycle and error/conflict behavior. The existence of an output schema relieves it of explaining return values, but the operational guidance gap keeps it at minimum-viable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all six parameters are already documented in the schema, including the exact operation enum values. The description adds only the notion of typed state objects (AST graphs, tables) and atomicity, not per-parameter semantics — baseline 3 is appropriate.

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?

States a specific verb (manages/reads/writes/CAS-swaps) and resource (persistent shared variable namespace V_t plus mutex leases), so the core function is clear. However, it never distinguishes this combined tool from the sibling icx_var_get / icx_var_set / icx_var_list tools, which plainly overlap, leaving the agent to guess which to invoke.

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

Usage Guidelines2/5

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

No guidance on when to use this versus the individual icx_var_* siblings, nor on when to choose 'swap' over 'set', or when lock acquisition is warranted. Operation names are listed in the schema but the prose offers no selection criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.