Skip to main content
Glama

build_template

Build a complete 3D part from a parametric template such as holed_base, flange, or l_bracket, overriding only the parameters you specify. Returns object id, actual parameters, and volume.

Instructions

按参数化模板一次建成零件(v0.4),返回对象 id、实际参数和体积。

template: 模板名,用 list_templates 查(holed_base 带孔底座 /
flange 法兰盘 / l_bracket L 形支架)。
params: 只传要改的参数(数字),其余用模板默认值;参数名用
list_templates 给出的 key,不要自己发明参数名。
参数不合法时报错会说明哪条约束没满足,场景不会留下半成品。
注意:参数都是用户定的,报错后不要擅自修改其他参数来绕过约束,
应把冲突原样报告给用户、由用户决定改哪个参数。

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": {
      "template": "<template>"
    },
    "name": "build_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNo
templateYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description does meaningful work: it discloses the returned fields, states that invalid parameters produce a constraint-specific error, and guarantees the scene is not left with a partial object (atomicity). It still omits placement/selection behavior, whether rebuilds are idempotent, and any permission assumptions, so it covers only part of the burden an unannotated mutation tool carries.

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?

Front-loaded with purpose and return values, then a compact per-parameter block, then a short note on conflict handling. Every sentence carries distinct information; nothing restates the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need little elaboration, and the description still names them. The atomicity guarantee and the conflict-reporting policy address the main risks of a template-driven build. Remaining gaps are minor environment details (where the object lands, how it interacts with selection) rather than correctness-critical ones.

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?

Schema coverage is 0% and params is a free-form object, so the description must compensate, and it does: template is tied to list_templates with three concrete examples, and params is explained as a partial numeric override keyed by the names list_templates returns. It cannot enumerate the actual keys, but it correctly delegates that to a sibling rather than leaving the agent guessing.

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?

States a specific verb and resource ("按参数化模板一次建成零件") plus the return payload (对象 id、实际参数和体积), which clearly separates it from the primitive-creation siblings like add_box. It does not explicitly contrast with those siblings, but pointing at list_templates for template names effectively frames its role.

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 concrete preconditions ("template: 模板名,用 list_templates 查") and a clear rule for params (pass only what you want to change, everything else uses defaults, do not invent parameter names). It lacks explicit when-to-use-this-vs-add_cylinder guidance, but the excluded failure mode (no half-built scenes) and the error-handling policy give strong operational context.

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