Skip to main content
Glama

execute_resolve_code

Run custom Python scripts in DaVinci Resolve's scripting environment to control timelines, media pools, and more. Use print() or assign a result variable for output.

Instructions

Execute arbitrary Python code in the DaVinci Resolve scripting environment. Use this for operations not covered by specific tools.

Pre-loaded namespace variables:

  • resolve: The DaVinci Resolve object

  • project: The current project

  • mediaPool: The current media pool

  • timeline: The current timeline (may be None)

  • mediaStorage: The media storage object

Use print() to output results, or set a variable named 'result'.

Parameters:

  • code: Python code to execute

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries the burden. It discloses pre-loaded namespace variables and that timeline may be None, and explains output using print() or 'result' variable. However, it lacks details on error handling, side effects, or restrictions on code length or safety.

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?

Concise yet informative: states purpose, lists pre-loaded variables, explains output, and describes the parameter. Well-organized with bullet points. No unnecessary sentences.

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?

Adequate for a simple tool with one parameter and an output schema. Covers basics but could benefit from examples or clarification of error handling. Given the complexity of executing arbitrary code, more context would improve usability.

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 0%, so description must add value. It describes 'code: Python code to execute' and adds context about pre-loaded variables and output methods, which partially compensates. Could be more detailed about acceptable code syntax or limitations.

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?

Clear verb+resource: 'Execute arbitrary Python code' in the DaVinci Resolve scripting environment. Distinguishes from siblings by stating 'for operations not covered by specific tools,' making it a fallback tool.

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?

Explicitly says 'Use this for operations not covered by specific tools,' implying when to use and when not to. Could be stronger by directly stating 'Prefer specific tools when available,' but still provides good guidance.

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/barckley75/resolve-claude-mcp'

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