Skip to main content
Glama

execute_python

Execute Python code in an isolated Docker container to create, edit, and analyze Excel files using openpyxl, pandas, numpy, and matplotlib; read from /inputs and write to /outputs.

Instructions

Execute Python for Excel work inside an isolated Docker container.

Available libraries: openpyxl, pandas, numpy, matplotlib. Read files from /inputs and write new or edited files to /outputs. Assign a JSON value to result for it to be returned. openpyxl writes formulas but does not calculate them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it delivers meaningful traits: sandboxed Docker isolation, the exact library set, file-path conventions, the `result` return contract, and the important caveat that openpyxl writes formulas without calculating them. It omits failure behavior, timeouts, whether state persists between calls, and network access, so it is not exhaustive.

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?

One front-loaded sentence establishes what and where, followed by three compact sentences covering libraries, I/O paths, and the formula caveat. No filler, no repetition of the name, and the most important constraint (isolation) leads.

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 tool with no annotations and no output schema, the description covers environment, dependencies, file conventions, and the return mechanism. Remaining gaps are error handling, resource limits, and persistence across invocations, which an agent would benefit from knowing but are not blocking.

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

Parameters4/5

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

The single `code` parameter has 0% schema description coverage, so the description must compensate, and it does: it specifies what the code should read (/inputs), where to write (/outputs), and how to return a value (assign to `result`). It never states the language binding or formatting expectations in detail, but the contract is substantially clarified.

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?

States a precise verb (Execute) and resource (Python) and immediately narrows scope to 'Excel work inside an isolated Docker container,' which tells the agent both the domain and the execution environment. There are no siblings to differentiate from, and the phrasing leaves no ambiguity about what the tool does.

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 supplies concrete operating context rather than exclusions: read from /inputs, write to /outputs, assign to `result`. That is actionable guidance for a code-execution tool, though it never states when this tool is preferable to another approach or what happens outside the Excel domain.

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