Skip to main content
Glama

mesh_editShape

Modify existing vector shapes by editing fill/stroke color and alpha, gradients, soft edges, styles, brushes, keyframes, and stacking order, or delete/reorder them.

Instructions

Edit, keyframe, restyle, reorder, or delete an existing vector shape (fill/stroke color & alpha, Soft Edge, Gradients + handles, Style 1/2, Brushes, stacking order).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mesh_editShape"
  }
}

Input Schema

NameRequiredDescriptionDefault
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)
brushNo
frameNo
lowerNo
raiseNo
toTopNo
deleteNo
style1NoSaved Style name, UUID, or index for Style 1 slot ('' to unlink)
style2NoSaved Style name, UUID, or index for Style 2 slot ('' to unlink)
hasFillNo
layerIdNoNumeric depth-first layer ID (from layer_list)
shapeIdNo
staggerNo
colorTagNoKeyframe color tag index (InterpSetting.tags)
gradientNo
hueDriftNo
intervalNoStep interval in frames (1 = ones, 2 = twos, 3 = threes)
lineCapsNo
satDriftNo
skipFillNo
skipLineNo
toBottomNo
valDriftNo
brushNameNo
brushTintNo
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)
fillColorNo
layerNameNoExact layer name
layerUuidNoLayer UUID
lineWidthNo
makePlainNo
roundCapsNo
shapeNameNo
brushAlignNo
hasOutlineNo
mergeAlphaNo
softEdgePxNo
brushJitterNo
effectScaleNo
lineWidthPxNo
strokeColorNo
brushIsColorNo
brushSpacingNo
effectOffsetNo
sizeVarScaleNo
additiveCycleNoEnable additive cycle accumulation
bezierInAngleNoBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
interpolationNo
bezierOutAngleNoBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
brushRandomizeNo
bezierInPercentNoBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
brushAngleDriftNo
bezierOutPercentNoBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
brushMergedAlphaNo
brushRandomOrderNo
cycleTargetFrameNoTarget loop frame when using Cycle interpolation
sizeVarAmplitudeNo
strokeSoftEdgePxNo
effectRotationDegNo
placeAboveShapeIdNo
smartBoilIntervalNo
placeBehindShapeIdNo
copyStyleFromShapeIdNo
copyStyleFromShapeNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a 68-parameter mutating tool. It discloses that deletion and reordering are possible, but says nothing about permission requirements, whether partial updates are supported (all 68 params are optional), whether 'delete' is reversible, or how conflicting inputs (e.g. raise plus toTop) are resolved. For a mutation tool with zero annotation coverage this is a significant gap.

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?

A single front-loaded sentence with the verb list first and the detail in a compact parenthetical; there is no filler. It is dense with enumerated capability terms, which is efficient for scanning, though the parenthetical grows long enough to blur priority.

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

Completeness2/5

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

Given 68 parameters, nested objects, zero annotations and no output schema, one sentence is far from sufficient to call this tool correctly. The definition covers the 'what' but leaves the how (targeting the shape, combining ordering flags, the aliased brush fields, interpolation options) entirely to an under-documented schema.

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

Parameters2/5

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

Schema description coverage is only 26% across 68 parameters, and the description compensates only loosely: the parenthetical categories map roughly onto fillColor/strokeColor, softEdgePx, gradient, style1/style2, brush, and the ordering flags. It adds nothing about the many ambiguous or aliased parameters (brushName vs brush.name, mergeAlpha vs mergedAlpha, brushMergedAlpha), interpolation inputs, or how layerId/shapeId identify the target. Well below the level needed at this coverage.

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

Purpose4/5

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

States specific verbs (edit, keyframe, restyle, reorder, delete) against a specific resource ('an existing vector shape'), which implicitly separates it from mesh_createShape. The parenthetical enumerates the editable domains (fill/stroke, Soft Edge, Gradients, Styles, Brushes, stacking order), so the agent can tell what class of operation it is. It falls short of 5 only because it does not name a contrasting sibling or bound the scope further.

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

Usage Guidelines3/5

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

The word 'existing' implies this tool is not for creation, and the listed capabilities imply what it is used for. However, there is no explicit when-to-use versus mesh_editPoints or mesh_editTopology guidance, and no statement of prerequisites (must you supply shapeId or shapeName? is layerId always required?). Usage is inferable but not stated.

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