Skip to main content
Glama
shotluma-design-mcp

shotluma-design-mcp

by Aana11

Render preview

render_preview

Render pages locally and save PNG previews to the project previews folder, returning paths, measurements, font reports, and validation issues; optionally return layout or full images on consent.

Instructions

Render pages with the same local renderer used for export, save the PNGs to the project previews/ folder and return their paths, measurements, font report and validation issues. By default NO image content is returned. returnImage "layout" returns a preview with protected screenshots/logos replaced by placeholders. returnImage "full" returns the complete image and requires userConsent quoting the user, because a local MCP server does not mean the client or its model is local: returned images may be uploaded to a remote model.

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": {
      "project": "<project>"
    },
    "name": "render_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWhat the saved preview file shows (default full).
pageIdsNo
projectYesProject id returned by create_project/open_project in this session, or the project directory path.
returnImageNoImage content returned to the client (default none).
userConsentNoRequired for returnImage "full": the user's explicit permission in their words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses filesystem writes to previews/, what is returned, that no image content is returned by default, what 'layout' redacts, and the privacy rationale that a local MCP server does not imply a local client/model. That consent explanation is exactly the kind of non-obvious risk an agent needs.

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?

Front-loaded with the core action and outputs, then the default behavior, then the two returnImage modes with their consequences. Every sentence carries information; the rationale for consent is load-bearing rather than filler.

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?

No output schema exists, and the description adequately covers return values and the file artifacts. Minor gaps remain around pageIds semantics (e.g., whether omitting it renders all pages) and the distinction between mode and returnImage, but nothing essential for a correct call is missing.

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 80%, so baseline is 3, and the description adds real meaning beyond the schema for returnImage (placeholder substitution in 'layout', consent-gated 'full') and userConsent ('the user's explicit permission in their words'). It says nothing about pageIds or how mode interacts with returnImage, leaving that to the schema.

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 ('Render pages') plus the concrete side effect of saving PNGs to previews/ and returning paths, measurements, font report and validation issues. It implies a relationship to export ('same local renderer used for export') but never states explicitly when to choose this over export_design.

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 mode-selection guidance: default returns no image, 'layout' returns placeholder-redacted previews, 'full' requires userConsent. It does not name export_design or validate_design as alternatives or state exclusions, so it stops short of full when/when-not guidance.

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