Skip to main content
Glama

batch_variants

Generate multiple parameter variants of a Rhino template in one call, exporting each to STL/STEP with a CSV manifest; invalid variants are skipped and noted.

Instructions

批量生成一个模板的多个参数变体(v0.5),一次调用全跑完。

template: 模板名(list_templates 查)。
variants: 参数组列表,每项是一组参数(只写要改的),例如
[{"hole_spacing": 50}, {"hole_spacing": 60}, {"hole_spacing": 70}];
空对象 {} 表示全默认参数。最多 50 个。
export_format: stl(默认)/ step / none(只量体积不导出)。
output_dir: 导出目录,省略则落桌面;文件名带序号和与默认不同的参数,
另有一份 batch_manifest.csv 对照清单。
注意:执行时会先清空场景,每个变体导出后即删除,结束时场景为空,
成果都在文件里。某个变体参数非法只跳过它并在清单里标注原因,
不要自己逐个 build_template 拼批量(慢且费调用)。

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>",
      "variants": "<variants>"
    },
    "name": "batch_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateYes
variantsYes
output_dirNo
export_formatNostl

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it warns that the scene is cleared at start, each variant is deleted after export, and the scene ends empty with results only in files. It also discloses per-variant failure handling (invalid params skipped and flagged with a reason in the manifest) and the side-effect of writing batch_manifest.csv.

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 purpose sentence, then one line per parameter, then the behavioral caveats. Dense but every line adds information an agent needs; nothing is repeated from the schema.

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

Completeness5/5

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

For a 4-parameter batch tool with no annotations, it covers inputs, destructive scene behavior, failure modes, and output artifacts; an output schema exists, so return values need not be spelled out. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate and does for all four parameters: template lookup source, variants structure with a concrete example, the {} = all-defaults convention, the 50-item cap, export_format's three values including the non-obvious none = measure-only, and output_dir's default plus file-naming/manifest behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: batch-generate multiple parameter variants of one template in a single call. The scope ("一次调用全跑完") distinguishes it immediately from the single-model sibling build_template.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative to avoid — "不要自己逐个 build_template 拼批量(慢且费调用)" — and points to list_templates for resolving the template name. The when-to-use case (many variants of one template) is unambiguous.

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