Skip to main content
Glama

Flatten Sheet-Metal Pattern

flatten_pattern
Read-onlyIdempotent

Use this when you need the unfolded flat pattern of a bent sheet-metal part. Return the unfolded 2D flat-pattern of a bent sheet-metal Shape as a Region (outer polyline + holes + bend lines + sketch plane). Any number of parallel bends; crossing bends need corner relief. Pass { file } or { code }; optional { feature_id } to pick a specific Shape.

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": "flatten_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
fileNoHosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files.
feature_idNo

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: -"Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."New value: +"Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files."
  2. Changed2 schema fields changed
    • removedInput schema / properties / featureId
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / feature_id
      Added value: +{
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "diagnostics": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "region": {
      -    "additionalProperties": true,
      -    "description": "Unfolded flat-pattern Region (outer polyline + holes + bend lines + plane).",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "diagnostics"
      -]
  4. Changed1 schema field changed
    • addedInput schema / properties / file / description
      Added value: +"Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "diagnostics": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "region": {
      +      "additionalProperties": true,
      +      "description": "Unfolded flat-pattern Region (outer polyline + holes + bend lines + plane).",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "diagnostics"
      +  ],
      +  "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.