Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

create_slice

Defines an export region over the content beneath it, so you can export that area to a file with export_node_to_file.

Instructions

Create a slice: an export region over whatever lies under it, to export with export_node_to_file

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": {
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "create_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX position
yYesY position
nameNoLayer name
widthYesWidth
heightYesHeight
parentIdNoParent node ID (default: current page)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

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 burden. It does disclose one real behavioral trait — the slice is a region over the content beneath it, not a container of moved children — but it says nothing about whether the created slice becomes a node in the tree, what it returns, whether the parentId default applies, or whether the operation is reversible. For a mutation tool with zero annotation coverage that is a substantial gap.

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 compact sentence with the core concept front-loaded and the workflow pointer appended; every clause carries information and there is no padding.

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?

With six parameters, no annotations, and no output schema, the agent still lacks the crucial chaining detail: how to obtain the created slice's node identifier to pass into export_node_to_file. The definition explains the concept well but is not complete for actually creating and then exporting a slice.

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 description coverage is 100%, with x, y, width, height, name, and parentId each documented, so the baseline is 3. The description adds no coordinate semantics, units, or coordinate-space details (e.g. whether x/y are page-absolute) beyond what the schema already states.

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 and resource ("Create a slice") and then defines what a slice is — "an export region over whatever lies under it" — which meaningfully distinguishes it from the geometric siblings like create_frame or create_rectangle that create containers rather than capture regions. It stops short of naming those siblings explicitly, but the concept is clear enough to select the tool.

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?

It states the follow-up workflow ("to export with export_node_to_file"), so the intended usage context is implied. However, it never says when to use this versus create_frame or create_rectangle for a region, nor any exclusion or prerequisite, leaving selection partly to inference.

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