Skip to main content
Glama

set_corner_radius

Set a Figma node's corner radius uniformly or per corner. Adjust individual corners for shapes like cards or chat bubbles.

Instructions

Set a node's corner radius. Pass radius for a uniform radius, and/or per-corner topLeftRadius / topRightRadius / bottomRightRadius / bottomLeftRadius (for nodes that support individual corners, e.g. a card rounded only on top, a tab or a chat bubble). A per-corner value overrides radius for that corner. At least one of radius or a corner is required. Returns { ok, nodeId }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesFigma node id
radiusNoUniform corner radius in px
topLeftRadiusNoTop-left corner radius in px
topRightRadiusNoTop-right corner radius in px
bottomLeftRadiusNoBottom-left corner radius in px
bottomRightRadiusNoBottom-right corner radius in px
Behavior3/5

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

Annotations indicate a non-destructive write operation, and the description adds the behavioral detail that per-corner values override the uniform radius and that the tool returns '{ ok, nodeId }'. It also hints that per-corner support depends on node type, but does not fully disclose behavior for unsupported nodes.

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?

The description is extremely concise: two sentences that front-load the purpose and efficiently cover parameter usage and return value. No unnecessary information.

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?

Given the tool's simplicity and the rich schema annotations, the description covers the essential aspects. It could mention that some nodes do not support per-corner radii, but overall it is complete for an agent to invoke the tool correctly.

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

Parameters4/5

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

With 100% schema description coverage, the baseline is 3. The description adds value by explaining the overriding relationship between 'radius' and per-corner parameters and providing concrete use cases, thereby enhancing understanding beyond the schema.

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

Purpose5/5

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

The description clearly states the tool's purpose: 'Set a node's corner radius.' It explains both uniform and per-corner options, and provides specific examples (card, tab, chat bubble) that distinguish it from other set tools like set_arc.

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

Usage Guidelines4/5

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

The description provides explicit guidance on parameter usage: when to use 'radius' versus per-corner parameters, and that at least one is required. However, it does not explicitly describe when to use this tool versus sibling tools like set_arc or set_layout_props, nor does it state prerequisites or node type restrictions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/awdr74100/figwright'

If you have feedback or need assistance with the MCP directory API, please join our Discord server