Skip to main content
Glama

apply_adaptive_remesh

Destructive

Adaptively remesh a DynamicMeshActor's mesh using a target edge length and optional weight map to control triangle density where needed.

Instructions

Adaptive-remesh a DynamicMeshActor's dynamic mesh using a target edge length and optional weight map

Returns: { actor_name: string, min_edge_length: number, max_edge_length: number, relative_density: number, weight_map_name: string, weight_map_resolved: bool, target_type: string, triangle_count: int, triangle_count_before: int, vertex_count: int, remeshed: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actor_nameYesLabel or name of the target DynamicMeshActor
max_edge_lengthYesTarget edge length for adaptive remesh (sets TargetType=TargetEdgeLength + TargetEdgeLength). Required.
min_edge_lengthNoSoft floor for adaptive edge length (default 1.0). NOTE: FGeometryScriptAdaptiveRemeshOptions has no explicit min field — this is echoed back in the result for traceability but is NOT consulted by the engine call.
weight_map_nameNoOptional name of an existing vertex weight map (resolved via UGeometryScriptLibrary_MeshQueryFunctions::GetWeightMapHandle). If omitted or the mesh does not have such a layer, the engine runs adaptive remesh without a weight map (its default invalid handle).
relative_densityNoDensity adjustment in [-2.0, 2.0] passed to FGeometryScriptAdaptiveRemeshOptions::RelativeDensity (default 0.0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/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 value by enumerating the returned result (before/after triangle counts, remeshed flag), letting an agent verify the mutation, but it does not say what happens to existing geometry/LODs, whether the operation replaces or mutates in place, or whether a weight map failure silently falls back.

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?

One front-loaded purpose sentence followed by a compact return signature; little wasted language. The inline return block is verbose but substitutes for the absent output schema, so it earns its space.

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, and the description compensates by spelling out the full return object. Given a destructive mesh operation with 100% parameter coverage and clear annotations, the definition is largely self-sufficient; only usage routing and in-place vs replace semantics are missing.

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 the schema already documents all five parameters in detail, including the notable caveat that min_edge_length is echoed but not consulted. The description names only target edge length and weight map, adding no semantics beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ('Adaptive-remesh') and resource ('a DynamicMeshActor's dynamic mesh'), plus the two distinguishing inputs (target edge length, optional weight map). The word 'adaptive' implicitly separates it from the sibling apply_uniform_remesh and from simplify_mesh, so an agent can distinguish intent without opening schemas.

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?

The description never says when to prefer this over alternatives such as apply_uniform_remesh or simplify_mesh, nor does it state prerequisites (e.g., the actor must already exist and hold a dynamic mesh). Usage is only inferable from the tool name and the mention of weight-map density control.

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