Skip to main content
Glama

execute

Run Python code in a persistent shared namespace with access to structures, calculators, and job IDs. Captures stdout for trusted local development.

Instructions

Execute Python in the persistent session namespace (escape hatch).

The namespace is shared with all tools: structures, calculators and jobs are bound by id (struct_1, calc_1, job_1) plus aliases (atoms, calc, job). Trusted local-dev use only. Captured stdout is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
Behavior3/5

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

Describes the shared namespace and stdout capture, but does not detail error handling, side effects on the namespace, or security implications beyond the trust warning. Without annotations, more behavioral context would be beneficial.

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 concise sentences that front-load the core purpose, follow with context, and end with a usage caution. Every sentence adds value with no redundancy.

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?

Covers basic purpose, namespace sharing, and output, but given the tool's nature as an escape hatch, it leaves out important details such as how to reference existing objects, error recovery, and limitations. Adequate but not fully complete.

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

Parameters2/5

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

The description does not elaborate on the 'code' parameter beyond the overall context of executing Python. Since schema coverage is 0%, the description should provide details on format, restrictions, or examples, but it does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states that the tool executes Python code in a persistent session namespace, explicitly calling it an 'escape hatch' and contrasting with other tools. It specifies the resource and action without ambiguity.

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?

Provides a clear usage constraint ('Trusted local-dev use only'), which helps the agent decide when to invoke it. However, it does not explicitly list alternatives or when not to use, leaving some inference to the agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jkitchin/fairchem-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server