Skip to main content
Glama
Axiomatic-AI

axiomatic-mcp

Official
by Axiomatic-AI

AxModelFitter_execute_code

Execute Python code in a sandboxed environment with JAX and model fitting libraries, using export() to return results. Use for running generated or custom model fitting code.

Instructions

Execute Python code in a sandboxed environment with JAX (jnp), diffrax, equinox, and the ax_core.model_fitter library available. Code must call export(name, value) at least once to return results. Typically used to run code produced by generate_code, but also accepts hand-written or modified code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPython code to execute. Must call export(name, value) to return results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.20

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the sandboxed execution environment, names the available libraries, and states the non-obvious rule that results must be returned through export(name, value). It does not mention timeouts, resource limits, or failure behavior, but the core execution contract is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each earning its place: the first defines the execution environment and libraries, the second states the mandatory export call, and the third clarifies typical usage. No fluff or repetition.

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 single-parameter execution tool, the description is largely sufficient: an agent knows what to pass and what contract the code must satisfy. The main gaps are the absence of return-value details and explicit execution constraints, but these are minor given the tool's simplicity.

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 for the only parameter, code, is 100% and already documents the export() requirement. The description adds useful environment and workflow context, but does not need to add parameter-level detail because the schema fully covers it.

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 clearly states the verb 'Execute' and resource 'Python code in a sandboxed environment', and further specifies the available libraries and the export(name, value) contract. It is clear what the tool does and when it fits, though it relies on the tool name and library list rather than explicitly contrasting with sibling execute_code tools.

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?

The description gives clear usage context: it is typically used to run code produced by generate_code, but also accepts hand-written or modified code. This helps an agent decide when to invoke it, though it stops short of naming alternatives or explicit when-not-to-use conditions.

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