Skip to main content
Glama
Fusion360 MCP Server

Fusion360 MCP Server

by shinobi81

Create CAM Operation

cam_create_operation

Adds a machining operation to a specified CAM setup, using a strategy to set the toolpath type and optional tool/cutting parameters.

Instructions

Add a machining operation to a setup. Strategy determines the toolpath type.

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": {
      "setup_name": "<setup_name>",
      "strategy": "<strategy>"
    },
    "name": "cam_create_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOperation name
coolantNoflood
stepdownNoAxial depth of cut (cm)
stepoverNoRadial stepover (cm)
strategyYesMachining strategy, in Fusion's own spelling. Measured against Operations.compatibleStrategies on 2706.1.17: of the fifteen names this schema carried, five were Fusion's (kept here) and ten were invented and refused as 'Unknown strategy'; the five 2D/3D names added here are the ones measured to expose a geometry parameter.
body_nameNoBody whose faces carry the operation's geometry; required with face_indices. Only the five strategies with a measured geometry parameter take a selection, and face is not one of them.
feed_rateNoFeed rate (cm/min)
tool_jsonNoA complete tool object as JSON, taken from a Fusion tool library (one entry of its data array). Used verbatim instead of tool_diameter/tool_length/tool_flutes. It must be complete: a partial object crashed Fusion 2706.1.17.
setup_nameYesName of the parent setup
tool_flutesNoFlute count of the tool tool_diameter creates; defaults to 2.
tool_lengthNoFlute length (cm) of the tool tool_diameter creates; defaults to three diameters.
tool_numberNoNumber the post writes. On its own it selects a tool the document tool library already holds - the reply says from_library, and a number nothing holds is refused naming the numbers that would work - or saying the library is empty. Beside tool_diameter it numbers the tool that creates. A tool supplied as tool_json carries its own number in its post-process block, so passing tool_number beside tool_json is refused rather than dropped.
face_indicesNoFaces to machine, by 0-based index in the body's own order (list_faces reports them, with each face's surface_type). Applied to the strategy's geometry parameter (contours/pockets/machiningBoundarySel). Refused for any strategy without one.
spindle_speedNoSpindle speed (RPM)
tool_diameterNoDiameter (cm) of the flat end mill this operation gets. The add-in builds a complete tool object, hands it to Fusion, and the operation can generate. Without a tool an operation cannot: Fusion answers 'Toolpath requires tool to be selected.'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.10.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / body_name
      Added value: +{
      +  "description": "Body whose faces carry the operation's geometry; required with face_indices. Only the five strategies with a measured geometry parameter take a selection, and face is not one of them.",
      +  "type": "string"
      +}
    • addedInput schema / properties / face_indices
      Added value: +{
      +  "description": "Faces to machine, by 0-based index in the body's own order (list_faces reports them, with each face's surface_type). Applied to the strategy's geometry parameter (contours/pockets/machiningBoundarySel). Refused for any strategy without one.",
      +  "items": {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / strategy / description
      Previous value: -"Machining strategy"New value: +"Machining strategy, in Fusion's own spelling. Measured against Operations.compatibleStrategies on 2706.1.17: of the fifteen names this schema carried, five were Fusion's (kept here) and ten were invented and refused as 'Unknown strategy'; the five 2D/3D names added here are the ones measured to expose a geometry parameter."
    • changedInput schema / properties / strategy / enum
      Previous value: -[
      -  "face",
      -  "2d_contour",
      -  "2d_pocket",
      -  "2d_adaptive",
      -  "3d_adaptive",
      -  "3d_pocket",
      -  "3d_contour",
      -  "3d_scallop",
      -  "3d_parallel",
      -  "drilling",
      -  "bore",
      -  "thread_milling",
      -  "slot",
      -  "trace",
      -  "engrave"
      -]New value: +[
      +  "face",
      +  "bore",
      +  "slot",
      +  "trace",
      +  "engrave",
      +  "contour2d",
      +  "pocket2d",
      +  "adaptive2d",
      +  "adaptive",
      +  "pocket_clearing"
      +]
    • changedInput schema / properties / tool_diameter / description
      Previous value: -"Not supported — tool geometry comes from the CAM tool library; select via tool_number instead. Passing this raises an error."New value: +"Diameter (cm) of the flat end mill this operation gets. The add-in builds a complete tool object, hands it to Fusion, and the operation can generate. Without a tool an operation cannot: Fusion answers 'Toolpath requires tool to be selected.'"
    • addedInput schema / properties / tool_diameter / maximum
      Added value: +1000
    • addedInput schema / properties / tool_flutes
      Added value: +{
      +  "description": "Flute count of the tool tool_diameter creates; defaults to 2.",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / tool_json
      Added value: +{
      +  "description": "A complete tool object as JSON, taken from a Fusion tool library (one entry of its data array). Used verbatim instead of tool_diameter/tool_length/tool_flutes. It must be complete: a partial object crashed Fusion 2706.1.17.",
      +  "type": "string"
      +}
    • addedInput schema / properties / tool_length
      Added value: +{
      +  "description": "Flute length (cm) of the tool tool_diameter creates; defaults to three diameters.",
      +  "maximum": 1000,
      +  "minimum": 0.001,
      +  "type": "number"
      +}
    • changedInput schema / properties / tool_number / description
      Previous value: -"Tool number from library"New value: +"Number the post writes. On its own it selects a tool the document tool library already holds - the reply says from_library, and a number nothing holds is refused naming the numbers that would work - or saying the library is empty. Beside tool_diameter it numbers the tool that creates. A tool supplied as tool_json carries its own number in its post-process block, so passing tool_number beside tool_json is refused rather than dropped."
    • addedInput schema / properties / tool_number / maximum
      Added value: +100000
  2. First observedv0.4.1

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already disclose that this is a non-idempotent mutation that is not read-only and not destructive, so the safety profile is covered. The description adds essentially nothing beyond that: no mention of failure modes, tool requirements, refusal behavior, or the fact that the operation is created but not generated — all of which lives only in the schema field text.

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?

Two short sentences, front-loaded with the action and object, with no padding. It is efficient, though the second sentence largely restates the schema's strategy field rather than adding routing or workflow information.

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 a 15-parameter mutation in a multi-step CAM workflow, the description leaves out the position in the pipeline (needs an existing setup, needs a tool, then must be generated) and any hint of the returned state. The unusually rich schema fields compensate for much of this, keeping it at minimum viable rather than inadequate.

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 93%, so the schema already carries the heavy detail, including strategy enumeration rationale and tool_number/tool_json interplay. The description contributes only that strategy selects the toolpath type, which the schema states far more precisely; baseline 3 is appropriate when the schema does the work.

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?

"Add a machining operation to a setup" gives a specific verb (add) and resource (machining operation) with the parent object stated, and the second sentence clarifies what strategy controls. It stops short of naming siblings such as cam_create_setup or cam_generate_toolpath, so the agent must infer the ordering from the requirement that setup_name exist.

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?

The description implies a setup must already exist but gives no explicit when-to-use, when-not-to-use, or prerequisite/next-step guidance. It never points to cam_create_setup for the parent or cam_generate_toolpath for producing the actual toolpath, so the agent has to reconstruct the workflow from sibling names.

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