Skip to main content
Glama

Create frame

create_frame

Create a frame (a screen) on the board, optionally filled with HTML + Tailwind. Placed to the right of existing content unless x/y are given; it never covers a frame, note or section (a spot that would is moved to the closest free one, and the result says so). Elements given your own keys (data-id="toggle") come back with the id each one got.

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": {
      "fileId": "<fileId>",
      "name": "<name>"
    },
    "name": "create_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
dataNoValues for <template data-each> and {{field}} placeholders in the html.
htmlNoContent of the frame: HTML + Tailwind.
nameYesScreen name, e.g. "Login – mobile".
classNoTailwind classes of the frame's root (background, padding, layout...).bg-white
widthNoWidth in px, or "hug" to fit the content.
deviceNoDevice preset (sets width and height): iphone-16 393×852, iphone-16-pro-max 440×956, iphone-se 375×667, pixel-9 412×915, galaxy-s24 360×780, ipad 820×1180, ipad-pro-13 1032×1376, laptop 1280×800, desktop 1440×1024, desktop-hd 1920×1080.
fileIdYes
heightNoHeight in px, or "hug" to fit the content.hug
parentIdNoPage or section to put the frame in. Defaults to the first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-open-world write. The description adds real value beyond that: overlap avoidance with automatic relocation of the spot to the nearest free position, the fact that the response reports the move, and that keyed elements (data-id) come back mapped to generated ids. It does not explain what happens on invalid fileId or whether the returned frame id is usable elsewhere, so it is good but not exhaustive.

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 dense sentences, front-loaded with the core action then the placement and return-value behavior; every clause carries information, though the parenthetical about relocation is slightly convoluted to parse.

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

Completeness4/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 a nested data object and no output schema, the description covers the highest-risk behaviors (non-overlap placement, id echo) that an agent could not infer from the schema; only error and return-shape details are missing.

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 73%, so most parameters are already documented. The description only adds semantic coupling for x/y (placement behavior) and for html/data keys, leaving device presets, width/height hug behavior, class, and parentId to the schema; it neither repeats harmfully nor compensates for the remaining gap.

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?

States a specific verb and resource ("Create a frame (a screen) on the board") plus the optional content payload (HTML + Tailwind), so an agent knows exactly what is produced and what can be embedded in it.

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 clear situational context — default placement to the right of existing content, overridden by x/y, and parentId defaulting is in the schema — but never says when to use this versus siblings like create_file, edit_html, or add_note, nor any prerequisites such as an existing fileId.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.