Skip to main content
Glama

execute_houdini_code

Run arbitrary Python inside Houdini's environment, returning status and stdout/stderr, while blocking dangerous calls unless explicitly allowed.

Instructions

Execute arbitrary Python code in Houdini's environment.
Returns status and any stdout/stderr generated by the code.
Blocks dangerous patterns (hou.exit, os.remove, subprocess, etc.) unless allow_dangerous=True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
allow_dangerousNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden and does well: it discloses that returns include status plus stdout/stderr, and that dangerous patterns (hou.exit, os.remove, subprocess) are blocked unless allow_dangerous=True. This is meaningful safety-mechanism disclosure. It omits permission/auth requirements, but overall it covers more than most code-execution tools.

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?

Three tight sentences, front-loaded with the core action, then return behavior, then the safety constraint. Every sentence earns its place with no filler.

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?

An output schema exists, so return-value detail is largely optional, yet the description still summarizes stdout/stderr/status. For an arbitrary-code-execution tool with zero annotations, the safety disclosure plus param explanation makes it essentially usable; only the missing alternative routing and permission context keep it from a 5.

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 is 0%, so the description must compensate. It does explain allow_dangerous precisely (unlocks blocked dangerous patterns), which is its main value. The 'code' parameter is self-evident by name, but the description adds no syntax or format guidance for it. Adequate but not complete against a 0% coverage baseline.

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 and resource: 'Execute arbitrary Python code in Houdini's environment.' An agent knows exactly what this does. However, it does not differentiate from the sibling execute_hscript or evaluate_expression, which are the closest alternatives, so it falls short of a 5.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no routing to alternatives. With siblings like execute_hscript and evaluate_expression present, the description gives no signal about when Python execution is the right choice over Hscript or expression evaluation.

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