Skip to main content
Glama

add_frame

Create a labeled boundary container in an Excalidraw scene and optionally assign existing elements by ID, grouping diagram content into clear sections.

Instructions

Add a frame (boundary container) to the scene.

Optionally assign existing elements to this frame using element_ids.

Input Schema

NameRequiredDescriptionDefault
hYes
wYes
xYes
yYes
nameYes
opacityNo
fillStyleNo
roughnessNo
element_idsNo
strokeColorNo
strokeStyleNo
strokeWidthNo
backgroundColorNo

Output Schema

NameRequiredDescriptionDefault
text_idNo
arrow_idNo
frame_idNo
label_idNo
circle_idNo
diamond_idNo
rectangle_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuine semantic context by framing the object as a container that can own elements, but it is silent on whether assigned elements move with the frame, whether their coordinates change, or what happens on overlap.

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?

Two short sentences, front-loaded with the core action and followed by the one non-obvious parameter. No filler, though the parenthetical definition of frame could have been spent on behavioral detail instead.

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?

An output schema exists, so return values need not be described, and annotations cover safety. However, with 13 parameters, five of them required geometry, and a containment relationship to explain, the definition is too thin to let an agent call this correctly without guessing about coordinates and child assignment semantics.

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 0% across 13 parameters, so the description must compensate and does not. Only element_ids is explained; x/y/w/h geometry, name, opacity, roughness, and the fillStyle/strokeStyle/strokeColor/backgroundColor styling parameters are left entirely to bare schema constraints, with no meaning added about coordinate origin or units.

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 ("Add a frame") and glosses the concept as a "boundary container," which tells an agent what a frame is versus a generic shape. It does not distinguish itself from the closest sibling, add_rectangle, 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?

The only usage hint is that element_ids can optionally assign existing elements to the frame. There is no guidance on when to choose a frame over add_rectangle, whether the frame must exist before or after its children, or any prerequisites. An agent must infer nearly everything about selection.

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