Skip to main content
Glama

create_section

Create a canvas section to organise Figma nodes, optionally moving existing children into it and auto-fitting the section to wrap them with padding.

Instructions

Create a section (canvas organiser; parent must be the page or another section, not a frame). Default size 400x300. childIds moves existing nodes into the section keeping their position on canvas (per-node results in moved). fitToContent resizes/moves the section to wrap its children with padding (default 40) — it defaults to true when childIds are given without width/height, so create_section({name, childIds}) just wraps those nodes.

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": "create_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoPosition relative to parent. If x, y and parentId are all omitted the node is centred in the viewport
yNo
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
fillNoHex color or 'none'
nameNo
widthNo
heightNo
paddingNoPadding used by fitToContent. Default 40
childIdsNoExisting nodes (same page) to move into the section
parentIdNoParent frame/group/section id; default current page
fitToContentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full load and does well: it discloses the default size (400x300), that childIds relocates existing nodes while preserving their canvas position, and even names an output field (per-node results in `moved`). It omits error behavior and what a caller should expect if a childId is on a different page, but the mutation semantics are unusually well surfaced.

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?

Dense but front-loaded: purpose first, then parent constraint, then defaults, then the fitToContent/childIds interaction. The em-dash aside and parenthetical are functional rather than decorative, though the final sentence restates the fitToContent default a second time.

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 an 11-parameter mutation tool with no annotations and no output schema, the description covers the differentiating parameters well but leaves several free parameters (fill, name, x/y interaction with childIds positioning) to the schema alone. The stated goal of being callable as create_section({name, childIds}) is fully achievable from the description, so it is complete enough to start but not exhaustive.

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?

Schema coverage is only 55%, but the description compensates for the highest-risk parameters: parentId's allowed parent types, childIds' move-preserving-position semantics, fitToContent's implicit default of true when childIds are given without width/height, and padding's default of 40. Left unexplained are file, fill, and x/y, whose schema descriptions do at least partially cover them.

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 and resource ("Create a section") and immediately scopes it with the parent constraint ("parent must be the page or another section, not a frame"), which separates it from create_frame and create_page. It stops short of differentiating itself from the sibling fit_section, even though it describes overlapping wrapping behavior inline.

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?

Gives a concrete usage pattern ("create_section({name, childIds}) just wraps those nodes") and a hard constraint on parentId, so an agent knows one good invocation shape. However, it never says when to use this versus create_frame or fit_section, and never states what happens if both width/height and fitToContent are supplied.

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