Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

create_mask

Apply a clip mask to a Figma vector node: use one node as the mask shape and clip another target node to it, then group both into a masked unit.

Instructions

Apply a clip mask — maskNode defines the shape, targetNode is clipped to it. Both nodes are grouped.

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": {
      "maskNodeId": "<maskNodeId>",
      "targetNodeId": "<targetNodeId>"
    },
    "name": "create_mask"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the resulting group
maskNodeIdYesID of the node to use as the mask shape (bottom layer)
targetNodeIdYesID of the node to be masked (top layer)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It does usefully disclose a side effect — "Both nodes are grouped" — plus the layer ordering (mask bottom, target top), but says nothing about failure conditions, permission needs, idempotency, or what the resulting object looks like beyond being a group.

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

Conciseness5/5

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

A single, densely packed sentence with the core operation front-loaded and the two node roles and resulting group stated compactly. No filler or repetition.

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 simple three-parameter operation with fully documented schema, the description covers the essential mechanics and the structural outcome (a group). It stops short of describing the return value or edge cases, and with no annotations and no output schema those gaps remain partially unfilled.

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 coverage is 100%, and each parameter already carries its own description including the bottom-layer/top-layer semantics. The description restates the maskNode/targetNode roles rather than adding new meaning, so the baseline 3 applies.

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?

The description gives a specific verb ("Apply a clip mask") and resource, and disambiguates the two node roles: maskNode is the shape, targetNode is what gets clipped. It is clear without opening the schema, though it does not explicitly contrast with siblings like group_nodes or boolean_operation, which an agent might otherwise consider.

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?

Usage is implied by the mechanics of masking, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., boolean_operation vs. this mask operation). The agent can infer the intent but gets no guidance on prerequisites such as both nodes needing to share a parent.

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