Skip to main content
Glama

tris_to_quads

Merge adjacent triangle pairs into quad faces where their geometry matches, optimizing mesh topology for subdivision and deformation tasks.

Instructions

Convert adjacent triangle pairs to quad faces where possible.

Improves topology for subdivision and deformation. Not all triangles can be merged — only adjacent pairs with compatible angles.

Args: object_name: Name of the mesh object.

selection: "ALL" to act on the whole mesh, or "CURRENT" to act only
    on what is already selected. Use the select_* tools to choose
    first. Defaults to "ALL".

Returns: Confirmation dict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectionNoALL
object_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / selection
      Added value: +{
      +  "default": "ALL",
      +  "enum": [
      +    "ALL",
      +    "CURRENT"
      +  ],
      +  "title": "Selection",
      +  "type": "string"
      +}
  2. Addedv1.2.2

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses partial-success behavior (not all triangles can be merged) and that it returns a confirmation dict, but omits what happens on failure, whether the operation is undoable, and any permission/mode requirements.

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?

Front-loaded with the core operation, then rationale, then caveats, then params. Well structured and mostly waste-free, though the Args/Returns scaffolding is slightly more verbose than needed given an output schema exists.

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?

For a topology-mutating tool with two params, an output schema covering returns, and no annotations, the description supplies enough to call it correctly: purpose, applicability caveat, and both parameter meanings. Behavior under failure conditions is the only notable omission.

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 description coverage is 0%, so the description must compensate, and it does: it documents object_name as the target mesh and explains the selection enum values ('ALL' vs 'CURRENT'), their default, and the prerequisite of selecting first. Minor gap: no note on whether object_name accepts an exact name or a reference.

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 ('convert') and resource ('adjacent triangle pairs to quad faces'), with an explicit scope qualifier ('where possible'). This clearly distinguishes it from the inverse sibling quads_to_tris.

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?

Explains the purpose context (improves topology for subdivision and deformation) and gives a concrete precondition: only adjacent pairs with compatible angles merge, so it is not universally applicable. It also instructs using select_* tools before 'CURRENT'. It stops short of naming sisters like quads_to_tris or repair_mesh as alternatives.

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