Skip to main content
Glama

build_variant_family

Create a set of part configurations by modifying a single dimension across multiple variant values, with optional parent configuration and final activation.

Instructions

Crear una familia de configuraciones cambiando una sola dimensión.

Junior workflow: "crea las configuraciones Corto/Mediano/Largo con longitudes 80/120/160mm". Composes (create_config + activate + modify_dimension) once per variant + a single save at the end.

Args: feature_name: Name of the feature carrying the dimension (e.g. "Saliente-Extruir1"). Must exist in the active part. dimension_name: Name of the dimension on that feature (e.g. "D1"). Must exist in the feature's dimensions dict. variants: Mapping from configuration name → new dimension value (mm). Non-empty, all values > 0. parent_config: Parent configuration for the new variants (empty = root). Same value passed to create_configuration for each. activate_at_end: Optional name of the variant to activate after creation. None = leave the active config wherever it landed after the loop. Must be a key of variants if provided.

Returns: {"created": [variant names in iteration order], "active_at_end": name | None}.

Caveat: If the loop fails partway through (e.g. modify_dimension raises on variant #2), the part is left with the configurations that were created up to that point. v1 surfaces the error with partial- state info so the user can manually delete_configuration to clean up. Auto-rollback isn't attempted (deletion is deferred by design per CLAUDE.md).

Example — 3-variant length family: build_variant_family( "Saliente-Extruir1", "D1", {"Corto": 80.0, "Mediano": 120.0, "Largo": 160.0}, activate_at_end="Mediano", )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variantsYes
feature_nameYes
parent_configNo
dimension_nameYes
activate_at_endNo
Behavior4/5

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

No annotations provided, so description carries full burden. It describes the composition of multiple steps, partial failure caveat, and no auto-rollback. Also explains return values. Slightly lacking details on save behavior but overall transparent.

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?

Well-structured with purpose, workflow, args, returns, caveat, and example. Slightly verbose but every sentence adds value. Not overly concise but effective.

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?

Given the complexity (composite tool, 5 parameters, safety concerns), the description covers purpose, parameters, returns, and a caveat. Could mention prerequisites like feature existence, but overall complete enough.

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 description must explain parameters. It does so thoroughly: feature_name, dimension_name, variants mapping, parent_config (empty for root), activate_at_end (must be a key of variants). Adds significant meaning beyond schema.

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?

The description clearly states the tool creates a family of configurations by changing a single dimension. It includes a concrete example and distinguishes from sibling tools like create_configuration and modify_dimension.

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?

Provides a clear workflow example and explains when to use (changing one dimension). However, it does not explicitly state when not to use or mention alternatives, though the context implies batch creation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielproxd2/MCP_CAD'

If you have feedback or need assistance with the MCP directory API, please join our Discord server