Skip to main content
Glama

Solve Mates

solve_mates
Read-onlyIdempotent

Solve the mate graph and get part poses. Pass code/file for an atomic source-bound solve, or omit both to use the active assembly. Returns { ok, status, poses, iterations?, evaluationEvidence? } where each pose is a serialized Transform ({ translation, rotateAxis, rotateDeg }). Optional poses overrides are keyed by mate name and accept only solver-supported pose coordinates. Fastened mates have zero articulation DOFs and planar mates have no supported pose coordinate; overrides for either return feature.invalid-args. Supplied source is captured once, consumed within this call and released after solving.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "solve_mates"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoInline kernelCAD source to capture and solve in this call.
fileNoPath to a kernelCAD script to capture and solve in this call. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files.
posesNoOptional numeric overrides keyed by mate name. Only mate types with solver-supported pose coordinates accept overrides; fastened mates have zero articulation DOFs and planar mates have no supported pose coordinate, so overrides for either return `feature.invalid-args`.
assemblyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Path to a kernelCAD script to capture and solve in this call. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."New value: +"Path to a kernelCAD script to capture and solve in this call. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files."
  2. Changed1 schema field changed
    • changedInput schema / properties / poses / description
      Previous value: -"Optional numeric pose overrides keyed by mate name."New value: +"Optional numeric overrides keyed by mate name. Only mate types with solver-supported pose coordinates accept overrides; fastened mates have zero articulation DOFs and planar mates have no supported pose coordinate, so overrides for either return `feature.invalid-args`."
  3. Changed2 schema fields changed
    • addedInput schema / properties / code
      Added value: +{
      +  "description": "Inline kernelCAD source to capture and solve in this call.",
      +  "type": "string"
      +}
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "Path to a kernelCAD script to capture and solve in this call. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "error": {
      -    "type": "string"
      -  },
      -  "errorCode": {
      -    "type": "string"
      -  },
      -  "errorHint": {
      -    "type": "string"
      -  },
      -  "iterations": {
      -    "description": "Solver iteration count (success).",
      -    "type": "number"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "poses": {
      -    "additionalProperties": true,
      -    "description": "Solved part poses keyed by mate; each a serialized Transform (success).",
      -    "type": "object"
      -  },
      -  "status": {
      -    "description": "Solver status (success).",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok"
      -]
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "type": "string"
      +    },
      +    "errorCode": {
      +      "type": "string"
      +    },
      +    "errorHint": {
      +      "type": "string"
      +    },
      +    "iterations": {
      +      "description": "Solver iteration count (success).",
      +      "type": "number"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "poses": {
      +      "additionalProperties": true,
      +      "description": "Solved part poses keyed by mate; each a serialized Transform (success).",
      +      "type": "object"
      +    },
      +    "status": {
      +      "description": "Solver status (success).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  6. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.