Skip to main content
Glama

create_frame

Adds a frame to a Figma page or parent container, with optional auto layout, dimensions, positioning, fill, and corner radius for grouping and laying out design content.

Instructions

Create a frame (optionally with auto layout) on the page or inside a parent.

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_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
fillNoHex color; omit for white, 'none' for no fill
nameNo
widthNo
heightNo
parentIdNo
autoLayoutNo
cornerRadiusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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. It confirms the tool is a mutation ('Create') but says nothing about defaults when x/y/width/height are omitted, what happens if parentId is invalid, or what the call returns — significant gaps for a creation tool.

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?

A single, front-loaded sentence with no wasted words; the key qualifiers (optional auto layout, placement context) come immediately after the verb. It is efficient, though it is terse to the point of under-specifying a 10-parameter tool.

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

Completeness2/5

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

For a tool with 10 parameters, a nested object, no annotations, and no output schema, this one-liner is far too thin. An agent cannot determine coordinate semantics, sizing defaults, or fill behavior from the definition alone.

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

Parameters2/5

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

Schema description coverage is only 20% across 10 parameters with a nested autoLayout object. The description adds some meaning by flagging that auto layout is optional and that omitting parentId places the frame on the page root, but it leaves x, y, width, height, name, cornerRadius, and most autoLayout sub-fields undocumented in both the schema and the prose.

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 names a specific verb and resource ('Create a frame') and adds two meaningful qualifiers: auto layout support and placement either on the page root or inside a parent. It does not distinguish this tool from closely related creation siblings such as create_section or create_shape, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The only implied routing signal is 'on the page or inside a parent', which hints that parentId is optional but does not establish a decision rule.

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