Skip to main content
Glama

apply_mesh_morphology

Destructive

Apply SDF-based dilate, contract, close, or open operations to a DynamicMeshActor to replace its mesh with an offset approximation for shape modification.

Instructions

Apply an SDF-based morphology op (dilate/contract/close/open) to a DynamicMeshActor's dynamic mesh. Replaces the mesh with an SDF-based offset mesh approximation.

Returns: { actor_name, operation, distance, triangle_count, triangle_count_before, vertex_count, morphed }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
distanceYesRequired positive float. Offset distance in cm (SDF-based).
operationYesRequired. One of: dilate, contract, close, open.
actor_nameYesLabel or name of the target DynamicMeshActor

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds real value beyond that by stating the mesh is REPLACED with an SDF-based offset approximation, warning the agent that geometry is overwritten and results are approximate. It stops short of noting whether the source mesh can be recovered.

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?

Core action is front-loaded, followed by the replacement behavior and a compact return-value list. Every sentence earns its place, though the Returns line is slightly schema-like rather than prose.

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?

No output schema exists, but the description enumerates the return fields (triangle_count, triangle_count_before, vertex_count, morphed), compensating well. Combined with the safety annotations and full parameter coverage, the only real gap is the absence of when-to-use guidance versus sibling mesh ops.

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 100%, so all three parameters (actor_name, operation, distance) are already documented, including the positive-float constraint and the operation enum values. The description restates the operation list but adds no syntax or format detail beyond the schema; baseline 3 applies.

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 (Apply), resource (SDF-based morphology op), the operation set (dilate/contract/close/open), and the precise target (DynamicMeshActor's dynamic mesh). This clearly distinguishes it from siblings like apply_mesh_boolean, apply_uniform_remesh, apply_adaptive_remesh, and apply_mesh_solidify.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no routing to alternatives despite many overlapping mesh-modification siblings (apply_uniform_remesh, apply_mesh_solidify, apply_adaptive_remesh). The agent must infer selection purely from the operation names.

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

Deploy Server

Other Tools