Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

set_corner_radius

Set corner radius on rectangles or frames to shape cards, tabs, or pill elements. Apply one uniform radius to all corners or define topLeft, topRight, bottomLeft, and bottomRight individually.

Instructions

Set corner radius of a rectangle or frame. Use radius for uniform corners or topLeft/topRight/bottomLeft/bottomRight for individual corners (e.g. pill, tab, card shapes).

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": {
      "nodeId": "<nodeId>"
    },
    "name": "set_corner_radius"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesFigma node ID
radiusNoUniform radius for all corners
topLeftNo
topRightNo
bottomLeftNo
bottomRightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses little: it never states that this mutates node geometry, whether individual corner values override 'radius', what happens when nodeId points at an unsupported node type, or whether values are validated/clamped. The only behavioral hint is the shape examples ('pill, tab, card'), which is thin for a mutation tool.

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?

Two sentences, zero filler, and the primary action is front-loaded before the parameter-choice guidance. Nothing repeats the schema or title verbatim.

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

Completeness3/5

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

For a 6-parameter mutation tool with no annotations and no output schema, the definition covers the two operating modes adequately but leaves meaningful gaps: precedence between uniform and per-corner values, node-type restrictions, and error behavior. It is the minimum viable definition rather than a complete one.

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 33% - nodeId and radius are documented, the four per-corner parameters are not. The description partially compensates by explaining that the four corner params act on individual corners and by giving shape examples, but it omits the key semantic question of precedence/interaction between 'radius' and the individual corner values.

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+resource ('Set corner radius of a rectangle or frame'), which unambiguously separates it from siblings like set_auto_layout, set_opacity or set_stroke. It does not explicitly name an alternative, but the resource is distinctive enough that confusion is unlikely.

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 explains which parameter set to choose ('Use radius for uniform corners or topLeft/... for individual corners'), which is usage guidance at the parameter level. It gives no when-to-use-vs-other-tool guidance and no exclusions, such as what happens on non-rectangle/frame nodes.

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