Skip to main content
Glama

mesh_createShape

Creates vector shapes from new points, oval or rectangle primitives, or existing point IDs, supporting holes, gradients, Soft Edge, saved styles, and brushes for Moho artwork.

Instructions

Create a vector shape from new points, an oval/rect primitive, or existing pointIds (with optional holes, Soft Edge, Gradients, Saved Styles, and Brushes).

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_createShape"
  }
}

Input Schema

NameRequiredDescriptionDefault
cxNo
cyNo
rxNo
ryNo
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
holesNoOptional interior closed hole point rings for compound shapes
widthNo
closedNo
heightNo
peakedNo
pointsNo
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)
staggerNo
colorTagNoKeyframe color tag index (InterpSetting.tags)
gradientNo
intervalNoStep interval in frames (1 = ones, 2 = twos, 3 = threes)
lineCapsNo
pointIdsNoCreate a shape on existing mesh points (for 2x stroke-behind-fill, partial edges, half-fills)
brushNameNo
curvatureNo
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
lineWidthNoRaw normalized stroke width (fraction of document height; prefer lineWidthPx)
makePlainNo
primitiveNo
roundCapsNo
hasOutlineNo
softEdgePxNoSoft Edge blur radius in pixels (moho:PixelToDoc)
effectScaleNo
lineWidthPxNoStroke width in pixels at project height (normalized via px / doc:Height())
strokeColorNo
effectOffsetNo
additiveCycleNoEnable additive cycle accumulation
bezierInAngleNoBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
interpolationNo
bezierOutAngleNoBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierInPercentNoBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutPercentNoBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
cycleTargetFrameNoTarget loop frame when using Cycle interpolation
strokeSoftEdgePxNo
effectRotationDegNo
smartBoilIntervalNo
behindNeighborStrokesNo

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. It names optional features like holes, Soft Edge, Gradients, Saved Styles, and Brushes, but does not disclose mutation semantics, required layer context, precedence when multiple sources are supplied, default behavior, or side effects for a 54-parameter creation tool.

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?

The definition is a single front-loaded sentence with no wasted wording. It is concise and easy to scan, though for a 54-parameter tool the extreme brevity leaves important structural information unstated.

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 the tool's complexity, 54 parameters, nested objects, no annotations, no output schema, and only 43% schema description coverage, the one-sentence description is not complete enough. It signals the main creation modes but does not explain how to choose among them or how the many optional animation/style/brush parameters interact.

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 low at 43% across 54 parameters. The description adds meaning for a handful of concepts (points, primitive, pointIds, holes, Soft Edge, Gradients, Styles, Brushes), but most parameters such as layerId, interpolation, cycle settings, bezier fields, fill/stroke colors, and brush object internals receive no additional semantic clarification.

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 a specific verb (Create) and resource (vector shape) and lists three source modes: new points, oval/rect primitive, or existing pointIds. It is clear enough to distinguish from mesh_editShape by name, but it does not explicitly say how it differs from sibling creation/editing tools.

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 description implies usage by listing creation sources (points, primitive, pointIds) and optional extras, but it gives no explicit when-to-use guidance, no prerequisites, and no comparison to alternatives such as mesh_editShape or mesh_createSmartWarp.

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