Skip to main content
Glama
shotluma-design-mcp

shotluma-design-mcp

by Aana11

Generate layout variants

generate_layout

Computes editable layout variants from canvas size and screenshots using pure geometry, keeping protected images visible, and can optionally apply a chosen variant to a page.

Instructions

Compute one or more editable layout variants (operations for apply_operations) for a canvas and a set of screenshots. Pure geometry: no remote model, no pixel generation. Placements keep protected screenshots fully visible, upright and unobstructed unless the user granted otherwise. Optionally apply a variant directly to a page.

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": {
      "assetIds": "<assetIds>"
    },
    "name": "generate_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoCopy to place; placeholders otherwise.
applyNoApply this variant to pageId (replace clears the page first).
brandNoOverride the project brand for this call.
frameNoDevice frame (default: chosen per screenshot aspect).
styleNoLayout style, or "auto".
widthNo
heightNo
marginNoSafe margin in px (default 6% of the shorter side).
pageIdNoTarget page; its canvas size is used when width/height are omitted.
projectNoProject whose assets/brand to use (required to resolve asset ids).
assetIdsYesScreenshot asset ids, in reading order.
textAreaNo
variantsNoNumber of variants (default 2).
frameColorNo
logoAssetIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 substantial work: it declares the operation is "Pure geometry: no remote model, no pixel generation" and states that protected screenshots remain "fully visible, upright and unobstructed." It also flags the optional mutation path ("apply a variant directly to a page"). It omits any note on permissions, cost, or failure behavior, which keeps it below a 5.

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?

Four tight sentences, front-loaded with what is computed and what it produces, followed by behavioral constraints and the optional apply path. Every sentence carries information, though the qualifier "unless the user granted otherwise" is vague and slightly weakens an otherwise precise statement.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with nested objects and no output schema, the description covers the core semantics and the deterministic-geometry behavior but leaves the return shape only obliquely implied ("operations for apply_operations") and never addresses resolution of assetIds without a project or what happens when apply is omitted. It is adequate but not complete for this 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 description coverage is 67%, so the schema already documents many of the 15 parameters, and the description adds only partial meaning on top: it clarifies that multiple variants are produced, that assetIds are the screenshots, and that apply targets a page. It says nothing about the interplay of width/height/pageId, the text placeholder behavior, brand override, or frame/style selection, leaving several parameters to the schema alone.

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 description opens with a specific verb and resource ("Compute one or more editable layout variants") and ties the output to a concrete downstream consumer ("operations for apply_operations"), which lets an agent distinguish it from apply_operations, render_preview, or list_layout_styles. It also scopes the input ("a canvas and a set of screenshots"). It stops short of explicitly contrasting itself with the nearest siblings, so it is clear but not fully differentiated.

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?

Usage is only implied: the parenthetical linking the result to apply_operations and the closing sentence "Optionally apply a variant directly to a page" suggest a generate-then-apply flow and explain the purpose of the apply parameter. There is no explicit statement of when to call this instead of list_layout_styles or render_preview, and no prerequisites are given.

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