Skip to main content
Glama

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

Execute In-Process WebAssembly Script

icx_wasm_exec

Executes compiled WebAssembly (WASM) bytecode or WAT text in-process with direct sub-100 microsecond Go host function memory bindings (icx_search, icx_recall, icx_quote, icx_remember, icx_walk, icx_get_var, icx_set_var, icx_stats). Eliminates subprocess spawning and socket IPC for high-frequency trading and low-latency robotics. Mutating/read operation. Requires X-License-Key authentication.

Input Schema

NameRequiredDescriptionDefault
codeYesThe WASM bytecode (base64 or binary string), WAT text, or in-process ICX script to execute.
space_idNoOptional memory space partition to execute within (default: 'default').
timeout_msNoOptional execution timeout in milliseconds (default: 50ms, max: 500ms).

Output Schema

NameRequiredDescriptionDefault
errorNodescription=Error message if execution failed
statusYesdescription=Execution status (success | error | timeout)
stderrNodescription=Captured stderr or error trace
stdoutYesdescription=Captured stdout from print() statements
memory_ops_countYesdescription=Count of memory queries or mutations performed
execution_time_msYesdescription=Wall-clock execution time in milliseconds
grounded_fact_countYesdescription=Count of grounded memory facts accessed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The description adds useful behavioral context beyond the annotations: in-process execution, direct Go host-function bindings, sub-100 microsecond latency, and X-License-Key authentication. However, the phrase "Mutating/read operation" is ambiguous for a tool with readOnlyHint=false, and it does not clarify side effects of mutating host functions such as icx_remember or icx_set_var.

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?

The description is front-loaded with the core operation and then supplies relevant context about in-process execution and host bindings. It is somewhat dense and includes the ambiguous phrase "Mutating/read operation," but most sentences carry useful information.

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 need not be explained. The description covers authentication, execution model, host functions, and latency context, though it could say more about side effects and sandboxing for a mutating execution 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 code, space_id, and timeout_ms are already documented in the input schema. The description reinforces that code can be WASM bytecode, WAT text, or an ICX script but adds no new syntax or format details beyond the schema.

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?

The description states a specific verb and resource: it executes compiled WebAssembly bytecode or WAT text in-process. It also lists the host-function bindings, making the tool's scope concrete, though it does not explicitly differentiate itself from the sibling icx_exec.

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

Usage Guidelines4/5

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

It gives clear intended-use context by naming high-frequency trading and low-latency robotics and explaining that it avoids subprocess spawning and socket IPC. It does not explicitly state when not to use it or name icx_exec as the alternative, so it falls short of full alternative routing.

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.