Skip to main content
Glama

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

Set Swarm Variable

icx_var_set

Stores a named typed variable, AST, symbol table, or state object into the persistent V_t swarm namespace with optional TTL. Accessible to all collaborative agents. Requires X-License-Key authentication.

Input Schema

NameRequiredDescriptionDefault
keyYesThe unique variable identifier in the swarm space.
typeNoOptional variable type: 'string', 'json', 'ast', 'diff', 'report', 'binary' (default: 'json').
valueYesThe value payload to store (string, JSON, or code snippet).
agent_idNoOptional agent identifier (e.g. 'cursor', 'claude_desktop').
space_idNoOptional memory space partition (default: 'default').
ttl_secondsNoOptional Time-To-Live in seconds (default: 86400 = 24h, 0 = permanent).

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

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries the rest: it adds the persistence scope (V_t swarm namespace reachable by all agents), the optional TTL semantics, and the X-License-Key authentication requirement – genuine context beyond structured fields. It stops short of stating overwrite behavior for an existing key or concurrency/conflict handling for shared writes, which are the main remaining unknowns for a setter.

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 with the action and scope front-loaded and no filler; the authentication note is tacked on the end but is still load-bearing information. Slight redundancy between 'persistent V_t swarm namespace' and 'accessible to all collaborative agents'.

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?

All six parameters are schema-documented and an output schema exists, so return values and parameter detail need no prose. The description covers auth, persistence scope, and TTL, leaving only overwrite and error semantics unstated – a modest gap for a shared-state write tool.

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 including the type enum values and ttl_seconds defaults are already documented in the schema. The description only loosely echoes 'named typed' and 'optional TTL' without adding format or constraint detail, so the baseline 3 applies.

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 ('Stores') and a precisely scoped resource (a named typed variable/AST/symbol table/state object into the persistent V_t swarm namespace). It clearly contrasts with icx_var_get/icx_var_list by the write verb, though it never names those siblings or distinguishes itself from icx_remember or icx_swarm_state, which likely also persist state.

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

Usage Guidelines3/5

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

'Accessible to all collaborative agents' implies the collaboration use case, and the persistence sweep in the namespace implies downstream reads via icx_var_get. However there is no explicit when-to-use / when-not, and nothing tells the agent whether to prefer icx_remember or icx_swarm_state for overlapping storage needs.

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.