Skip to main content
Glama

studio_generate_layout

Design a layout from a brief: returns { layout: { name, background, layers[] } } with rect, ellipse, text and image layers positioned in pixels on a width×height artboard. Place it in a Design Studio file with studio_create_document / studio_add_frames / studio_add_elements. Cost: 1 credit.

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": {
      "prompt": "<prompt>"
    },
    "name": "studio_generate_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoArtboard width in pixels (optional; chosen to suit the brief when omitted)
heightNoArtboard height in pixels (optional)
promptYesWhat to design, e.g. 'Instagram post announcing a summer sale, bold and warm' (max 2000 chars)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does meaningful work: it names the exact return shape, states the coordinate unit (pixels) and artboard dimensions, and discloses a cost of 1 credit. The follow-on 'place it with…' sentence implies the call itself does not persist anything, which is the key side-effect question an agent would have — though it could have said so outright.

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 tight sentences, front-loaded with the purpose and return contract, then the follow-on tools and cost. The inline brace notation for the return shape is dense but readable and earns its space; nothing is redundant.

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?

There is no output schema and no annotations, so the description must explain the return value and behavior itself — and it does, naming the layer types and coordinate system. Remaining gaps (dimension bounds, error behavior, latency) are minor for a single-shot generative call with only one required parameter.

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%, so width, height, and prompt are already fully documented in the schema, including the optional/auto-chosen behavior of width and the 2000-char prompt limit. The description only reinforces 'artboard' and 'from a brief' without adding new constraint or format detail, so the baseline 3 applies.

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 ('Design a layout from a brief') and immediately concretizes the artifact: a layout object with name, background, and rect/ellipse/text/image layers placed on a width×height artboard. This is unmistakably distinct from the studio_* mutation siblings, which assemble documents rather than generate layout specs.

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

Usage Guidelines4/5

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

Gives clear workflow context: this tool produces a layout, and the agent should use studio_create_document / studio_add_frames / studio_add_elements to place it in a file. That implies the tool does not itself persist a file. No explicit exclusions or when-not-to-use case is given, which keeps it short of a 5.

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