Skip to main content
Glama

eval_python

Execute raw Python code on the Ableton Remote Script instance for development and advanced debugging.

Instructions

Evaluate raw Python code on the Ableton Remote Script instance (for development and advanced debugging).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPython expression or script to execute on self

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose that code runs against the Remote Script instance, which conveys the execution context, but it omits the safety-relevant traits of arbitrary code execution: no mention of sandboxing, side effects, mutability of the Ableton session, error behavior, or what is returned.

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?

One sentence, front-loaded with the verb and resource, with the qualifying context in a compact parenthetical. Nothing is wasted, though it is arguably under-specified rather than optimally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool that executes arbitrary code against a live host with no annotations and no output schema, the description is too thin. It should at minimum say what the code has access to, whether effects are persistent, and what a call returns or raises.

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 coverage is 100% for the single 'code' parameter, so the schema already documents it. The description adds only marginal context by naming the target instance, which loosely corresponds to the schema's 'execute on self'. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb (Evaluate), resource (raw Python code), and execution target (the Ableton Remote Script instance). It is unambiguous and clearly distinct from every sibling, which are all narrow get_/set_ operations. It stops short of 5 only because it doesn't frame itself as the general-purpose escape hatch relative to those 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?

The parenthetical '(for development and advanced debugging)' implies when to reach for it, suggesting it is not the primary path for routine operations. However, it never states conditions or explicitly tells the agent to prefer the dedicated sibling tools instead, so the guidance is implied rather than explicit.

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