Skip to main content
Glama
Fusion360 MCP Server

Fusion360 MCP Server

by shinobi81

Execute Code

execute_code
Destructive

Run arbitrary Python inside Fusion 360 to automate CAD tasks; returns the last expression's value REPL-style, with app, ui, design, component, adsk, and math pre-defined.

Instructions

Run arbitrary Python in Fusion 360. The last expression's value is returned (REPL-style). Pre-defined names: app, ui, design, component, adsk, math.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "execute_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.4.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=true, so the safety profile is covered. The description adds genuinely new behavioral context -- REPL-style evaluation and the pre-bound names (app, ui, design, component, adsk, math) -- but omits error/exception behavior, timeout or rate limits, and whether executed changes are undoable in the Fusion document.

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?

Three short sentences, zero filler, with the core action front-loaded and the namespace list kept compact at the end. Every clause carries information an agent needs before calling.

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?

For an arbitrary-code-execution tool flagged destructive, the definition covers purpose, return value and available names but not failure modes, execution limits, or what the response looks like on success versus exception. With no output schema and no annotations explaining side effects, those gaps matter more than they would for a simple read tool.

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 parameter has 0% schema description coverage, so the description carries the burden and largely does: it establishes that 'code' is arbitrary Python, that the last expression is the return value, and which globals are in scope. It stops short of showing a concrete example snippet, which would have fully closed the gap.

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 specific verb and resource ('Run arbitrary Python in Fusion 360') plus return semantics ('last expression's value is returned (REPL-style)') and the pre-bound namespace. An agent immediately understands this is the general scripting escape hatch rather than a parametric modeling tool like the create_* siblings.

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?

There is no guidance on when to reach for this versus the many dedicated siblings (create_box, create_sketch, add_constraint, etc.), which is the single most consequential routing decision for an agent. It also says nothing about when not to use it, prerequisites, or what happens if the code fails.

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