Skip to main content
Glama

create_frame

Destructive

Creates a new frame on the current page or within a parent node, with customizable size, position, and auto-layout properties.

Instructions

Create a new frame on the current page or inside a parent node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX position (default 0)
yNoY position (default 0)
nameNoFrame name
widthNoWidth in pixels (default 100)
heightNoHeight in pixels (default 100)
parentIdNoParent node ID in colon format. Defaults to current page.
fillColorNoFill color as hex e.g. #FFFFFF
layoutModeNoAuto-layout direction: HORIZONTAL, VERTICAL, or NONE
layoutWrapNoWrap behaviour: NO_WRAP or WRAP
paddingTopNoAuto-layout top padding
itemSpacingNoAuto-layout gap between children
paddingLeftNoAuto-layout left padding
paddingRightNoAuto-layout right padding
paddingBottomNoAuto-layout bottom padding
counterAxisSpacingNoGap between wrapped rows/columns (only when layoutWrap is WRAP)
counterAxisAlignItemsNoCross-axis alignment: MIN, CENTER, MAX, or BASELINE
counterAxisSizingModeNoCross-axis sizing: FIXED or AUTO (hug)
primaryAxisAlignItemsNoMain-axis alignment: MIN, CENTER, MAX, or SPACE_BETWEEN
primaryAxisSizingModeNoMain-axis sizing: FIXED or AUTO (hug)
Behavior2/5

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

The description only states 'Create a new frame', which is inferred as a mutation. Annotations already indicate readOnlyHint=false and destructiveHint=true, but the description does not clarify what makes it destructive (e.g., overwriting existing nodes) or any side effects beyond creation.

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?

The description is a single sentence, efficiently conveying the core purpose without unnecessary words. It is front-loaded and easy to parse, though it could benefit from additional context without losing conciseness.

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?

With 19 optional parameters and no output schema, the description is too sparse. It fails to mention defaults, the auto-layout capabilities implied by parameters, or important behaviors like what happens when parentId is omitted. A more comprehensive description is needed given the tool's complexity.

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 100% with parameter descriptions, so baseline is 3. The description adds no extra parameter semantics beyond what the schema provides, so no improvement is warranted.

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 creates a 'frame', a specific resource type, and specifies placement ('on the current page or inside a parent node'). This distinguishes it from sibling creation tools like create_rectangle or create_ellipse.

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?

The description provides no guidance on when to use create_frame versus alternatives like create_section or create_component. It does not mention when not to use it or suggest other tools for different container needs.

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/vkhanhqui/figma-mcp-go'

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