Skip to main content
Glama

execute_python

Destructive

Run Python code inside Marmoset Toolbag when Python execution is allowed, with mset imported to automate scene tasks; assign result to return values and print() for logs.

Instructions

Run Python inside Toolbag with mset imported; only while the user has ticked "Allow Python execution" in the Toolbag MCP window. The namespace persists between calls; assign result to return a value; print() output comes back as log.

Input Schema

NameRequiredDescriptionDefault
codeYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond annotations, it discloses that the namespace persists between calls, that assigning `result` returns a value, and that `print()` output is returned as `log`. These are meaningful execution semantics not captured by the structured fields.

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?

The description is compact and front-loaded with the core action. Every clause adds useful information about permissions, state persistence, or return behavior.

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 an arbitrary code execution tool with annotations covering destructiveness and an output schema covering return values, the description is largely complete. The main gap is the unexplained `timeout` parameter.

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?

It explains the required `code` parameter well by describing the Python environment and return conventions. With 0% schema description coverage, however, it omits any explanation of the `timeout` parameter and its units or behavior.

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?

The description states a specific verb and resource: run Python inside Toolbag. It also identifies the execution context (`mset` imported) and distinguishes this as the generic code-execution tool among otherwise domain-specific siblings.

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

Usage Guidelines3/5

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

It gives an important prerequisite: the user must have enabled 'Allow Python execution'. However, it does not explain when to prefer this over the many specific sibling tools, nor when not to use it.

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