Skip to main content
Glama

mesh_editTopology

Edit vector topology and curves by splitting segments, welding or inserting points, hiding edges, merging shapes, triangulating, and adjusting stroke exposure in Moho projects.

Instructions

Edit vector topology and curves: split_segments, insert_point, weld_points, connect_and_create, hide_edge, delete_points, mirror_points, merge_shapes, triangulate, and stroke_exposure.

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": {
      "operation": "<operation>"
    },
    "name": "mesh_editTopology"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
axisNo
holdNoFrames to hold prior value before interpolating
nameNo
val1NoInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2NoInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
axisXNo
axisYNo
edgesNo
frameNo
pairsNo
hiddenNo
curveIdNo
hasFillNo
layerIdNoNumeric depth-first layer ID (from layer_list)
staggerNo
visibleNo
colorTagNoKeyframe color tag index (InterpSetting.tags)
editOnlyNo
intervalNoStep interval in frames (1 = ones, 2 = twos, 3 = threes)
pointIdANo
pointIdBNo
pointIdsNo
shapeIdsNo
weldAxisNo
axisValueNo
cycleBackNoRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModeNoCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
duplicateNo
fillColorNo
layerNameNoExact layer name
layerUuidNoLayer UUID
operationYes
segmentIdNo
endPercentNoStroke exposure end (0.0 .. 1.0)
hasOutlineNo
shapeNamesNo
splitCountNo
createShapeNo
lineWidthPxNo
strokeColorNo
mirrorShapesNo
solidPointIdNo
startPercentNoStroke exposure start (0.0 .. 1.0)
additiveCycleNoEnable additive cycle accumulation
bezierInAngleNoBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
interpolationNo
movingPointIdNo
targetLayerIdNo
weldToleranceNo
bezierOutAngleNoBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierInPercentNoBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
clearParentBoneNo
preserveCornersNo
preserveHandlesNo
targetLayerNameNo
bezierOutPercentNoBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
cycleTargetFrameNoTarget loop frame when using Cycle interpolation
preserveCurvatureNo
correctBezierHandlesNo
preservePointBindingNo
behindNeighborStrokesNo
continuousTriangulationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses none of it - no irreversibility for `delete_points`/`weld_points`/`merge_shapes`, no selection prerequisites, no side effects. The operation names hint at destructive behavior, but nothing is stated explicitly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loads the purpose, which is good. But the enumerated operation list is pure duplication of the schema enum and earns no place, and the remaining gaps are gaps of omission rather than brevity.

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

Completeness1/5

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

A ten-operation, 64-parameter mutation tool with no annotations and no output schema demands far more than one sentence. Nothing tells the agent how to construct valid per-operation calls, which is the core difficulty of this tool.

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

Parameters1/5

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

Sixty-four parameters with only 28% schema description coverage, and the description adds no parameter meaning whatsoever. Crucially it never maps which subset of the 64 params applies to which of the ten operations, leaving the caller to guess.

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

Purpose3/5

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

"Edit vector topology and curves" gives a verb and resource, which distinguishes it loosely from siblings like mesh_editPoints and mesh_editShape. But the rest of the sentence just re-lists the `operation` enum already present in the schema, so the agent learns nothing about what each operation actually does.

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?

There is no when-to-use guidance at all: no indication of which operation to pick for a given goal, and no steer toward mesh_editPoints or mesh_editShape instead. The reader must infer everything from ten bare operation names.

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