Skip to main content
Glama

feature_tree_create

Creates any Creo feature from an Object TOOLKIT element tree, enabling sweeps, blends, drafts, ribs, patterns, mirrors, surfaces, and other features without dedicated tools.

Instructions

Create ANY Creo feature from an Object TOOLKIT element tree (the route to features without a dedicated tool: sweeps, blends, drafts, ribs, patterns, mirrors, surfaces, cosmetic threads...).

JSON node: {"elem": "PRO_E_...", , "children": [...]}, value one of "int" (number or TOOLKIT constant name like "PRO_EXTRUDE", "A | B" for flags), "double", "str", "bool", "ref"/"refs" (+ optional "ref_type"), "collection": {"edges"|"chain"|"curves"|"surfaces": [refs]}, "sketch": {"entities": [...]} on PRO_E_SKETCHER (see feature_extrude for entities). Workflow: toolkit_doc("ProRound") for the tree layout -> toolkit_lookup for constant values -> feature_tree_dump of a similar existing feature as a template -> feature_tree_create. xml: Creo's own element-tree XML (as from feature_tree_dump format="xml").

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

Input Schema

NameRequiredDescriptionDefault
xmlNo
fileNo
treeNo
undo_if_failNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does convey that this is a mutation built from an element tree and that existing similar features can be dumped as templates. However it omits prerequisites (an open Creo model/session), what happens on a malformed tree, and the meaning of undo_if_fail, which is only visible as a schema default. The xml sentence adds useful provenance about the accepted format.

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?

Front-loaded with purpose, then structured into labeled blocks (JSON node, Workflow, xml) that make scanning easy and contain no filler sentences. The value-type enumeration is dense but every line carries concrete calling 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 highly complex mutation tool with no annotations, the definition covers the data format and preparation workflow well but leaves real gaps: the file parameter, undo_if_fail semantics, input exclusivity, session prerequisites, and failure behavior. An output schema exists, so return values need not be explained.

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 0%, so the description must compensate, and it does substantially for 'tree' (node shape, value types, collection and sketch forms) and 'xml' (Creo's own format as produced by feature_tree_dump format='xml'). It never mentions the 'file' parameter or explains 'undo_if_fail', leaving two of four parameters undocumented anywhere, and gives no explicit mutual exclusivity between tree/xml/file.

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?

Names a concrete verb and resource ('Create ANY Creo feature from an Object TOOLKIT element tree') and explicitly positions itself as the fallback route for features lacking a dedicated tool, which separates it from the many feature_* siblings. The example list slightly undercuts this, since it cites sweeps and ribs even though feature_sweep and feature_rib exist among the siblings.

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?

Gives an explicit four-step workflow (toolkit_doc for the tree layout, toolkit_lookup for constants, feature_tree_dump for a template, then feature_tree_create), which tells an agent concretely how to prepare before calling. It never states the exclusion rule plainly (prefer a dedicated feature_* tool when one exists) and says nothing about recovery if the tree is rejected.

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