Skip to main content
Glama

Apply Personalized Screenshot Style

apply_screenshot_style

Creates a new screenshot variant from a prepared personalized catalog and the specified template/palette selection. Reuses cached candidate layouts without another generation and returns the editor link. Existing variants are preserved.

Input Schema

NameRequiredDescriptionDefault
projectIdNoAlias of generationId (the project id).
catalogKeyYes
deviceTypeNoDevice to show first in the editor. Defaults to phone.
templateIdYes
paletteModeNoColor palette variant. v1 is the original palette; v2 uses stronger color separation. Defaults to v1.
generationIdNoProject id: the same UUID as projectId from list_projects/get_project (generationId is its legacy name). You may pass projectId instead.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes
widgetDataJsonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare non-destructive, non-idempotent, closed-world behavior, so the bar is lower and the description does add real context: cached layout reuse (no regeneration cost) and 'Existing variants are preserved'. However, it does not say what happens on an invalid/expired catalogKey, whether repeated calls with the same inputs produce duplicates (relevant given idempotentHint=false), or what the editor link points to.

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?

Three short sentences, front-loaded with the action, then the caching/no-regeneration trait, then the safety reassurance. Little waste; the only minor redundancy is restating the return of an editor link that the output schema likely covers.

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?

With annotations covering safety profile and an output schema covering return values, the description only needs to convey the composition semantics and it does. The remaining gap is the two required parameters' semantics and the precondition on prepare_screenshot_styles.

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 67%, with descriptions for projectId/generationId aliasing, deviceType and paletteMode; the two required params, catalogKey and templateId, are undocumented in the schema. The description only gestures at them ('prepared personalized catalog', 'specified template'), adding no format, provenance, or lookup guidance for the mandatory inputs.

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?

Specific verb and resource: 'Creates a new screenshot variant' from 'a prepared personalized catalog and the specified template/palette selection'. The phrase 'Reuses cached candidate layouts without another generation' implicitly separates it from the prepare/generate step, but no sibling is named outright, so an agent must infer the pairing from the sibling list.

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?

The mention of a 'prepared' catalog hints that prepare_screenshot_styles must run first, and 'specified template/palette selection' implies the selection step, but neither is stated as a precondition. There is no explicit when-to-use/when-not or named alternative (create_variant, apply_locale_screenshots).

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.