Skip to main content
Glama

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

Execute Programmatic CodeAct Script

icx_exec

Executes programmatic Python code inside a sandboxed execution runtime with direct sub-5ms native access to persistent Volumetric Lattice Network memory via the global 'icx' object (icx.search, icx.recall, icx.quote, icx.remember, icx.stats, icx.contradictions). Use this tool for complex multi-hop aggregations, mathematical calculations, contract/financial analytics, and large dataset filtering off-context without bloating the LLM prompt window. Only printed output (print()) crosses into the conversation context. Mutating/read operation. Requires X-License-Key authentication.

Input Schema

NameRequiredDescriptionDefault
codeYesThe Python script to execute. Standard libraries and the pre-injected 'icx' client are available. Use print() to emit the final bounded result.
space_idNoOptional memory space partition to execute within (e.g. 'default', 'sec_filings_2026'). Defaults to 'default'.
timeout_msNoOptional execution timeout in milliseconds (default: 3000ms, max: 5000ms).

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.9/5.0
Behavior4/5

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

Annotations only provide readOnlyHint=false, so the description adds meaningful behavioral context: sandboxed execution, direct memory access through 'icx', the fact that only print() output crosses into context, and X-License-Key authentication. The phrase 'Mutating/read operation' is awkward but not contradictory with readOnlyHint=false. It still lacks detail about side effects of mutations or failure behavior, which keeps it from 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?

The description is compact and front-loads the core action and runtime context. The use-case sentence is dense but purposeful, and the output/auth notes are useful. Minor waste comes from the full method list and the slightly awkward 'Mutating/read operation' phrase, but overall it is well structured.

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 complex execution tool with a rich schema and an output schema, the description covers execution environment, memory access, output behavior, use cases, and authentication. It does not need to explain return values because an output schema exists. The main omission is explicit guidance on choosing between this and sibling execution or multi-hop tools.

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 the schema already documents 'code', 'space_id', and 'timeout_ms' thoroughly. The description reinforces the 'icx' client and print() output behavior, but it adds little beyond what the schema says and does not elaborate on space_id or timeout semantics. The baseline score of 3 is appropriate when the schema carries parameter documentation.

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 names a specific verb and resource: executing programmatic Python code inside a sandboxed runtime. It also identifies the key capability, native access to Volumetric Lattice Network memory through the global 'icx' object, which helps distinguish it from ordinary execution tools. It does not explicitly distinguish itself from close siblings such as icx_wasm_exec or icx_multihop_walk, so it falls short of full sibling differentiation.

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 cases: complex multi-hop aggregations, mathematical calculations, contract/financial analytics, and large dataset filtering off-context. This is stronger than implied usage and tells the agent when the tool is appropriate. However, it does not state when not to use it or name alternatives like icx_wasm_exec or icx_multihop_walk, so it lacks explicit exclusions.

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.