Skip to main content
Glama

studio_add_elements

Add text, rectangles, ellipses or SVG paths to a frame of a Design Studio file. Positions are px from the frame's top-left. Text wraps inside its width; use align center with x 0 and the frame's width to center it. Changes are saved to the cloud file; an editor tab that already has the file open must be reloaded to see them (and would overwrite them if it saves first). Requires auth (write).

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": {
      "document_id": "<document_id>",
      "frame_id": "<frame_id>",
      "elements": "<elements>"
    },
    "name": "studio_add_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementsYes
frame_idYesFrame id from studio_get_document / studio_create_document
document_idYesStudio document UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses that changes are written to the cloud file, requires write auth, and warns that an already-open editor tab must be reloaded and could clobber the changes if it saves first. It stops short of stating whether elements are appended to existing frame content or what the call returns, which is the remaining behavioral 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?

Five tight sentences, front-loaded with purpose, then coordinate semantics, then a practical centering tip, then the persistence hazard, then auth. Every sentence carries information an agent would otherwise have to guess at.

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 a three-parameter tool with a rich nested element schema and no output schema, the description covers the coordinate model, persistence, concurrency hazard, and auth. The one missing piece is the return value or the ids of the newly created elements, which an agent would need for follow-up edits or deletes.

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

Parameters4/5

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

Schema coverage is a high 67%, and the description still adds real meaning beyond it: the px-from-top-left coordinate convention, the text-wrap-inside-width behavior, and the non-obvious centering recipe (align center with x 0 and the frame's width). Nested element fields are left entirely to the schema, which is reasonable given their per-field descriptions.

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 first sentence gives a specific verb and resource set: 'Add text, rectangles, ellipses or SVG paths to a frame of a Design Studio file', which is clearly narrower than studio_add_frames. The scoping to a frame inside a document distinguishes it in substance, though no sibling is named explicitly to route the agent between the two add tools.

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?

Operational guidance is strong for the centering recipe and the editor-tab reload caveat, but there is no statement of when to choose this tool over studio_add_frames, studio_create_document, or the ai_* generators. Usage is implied by the resource types accepted rather than contrasted against alternatives.

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.

Resources