Skip to main content
Glama

AppScreenDesign 3D Screenshot Studio

apply_template

Destructive

Switch a device family’s template without waiting for comparison PNGs. Restores prior edits saved in this project, size and language when returning to a used template. Other sizes and localizations stay intact. Read get_project for expectedRevision and send ordered owned captureKeys. restoreSaved:false or explicit copy/artwork overrides starts a fresh layout. Returns saved project, revision and restored; use preview_panel to inspect it. Requires projects:read and projects: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": {
      "projectId": "<projectId>",
      "expectedRevision": "<expectedRevision>",
      "family": "<family>",
      "locale": "<locale>",
      "captureKeys": "<captureKeys>",
      "templateId": "<templateId>"
    },
    "name": "apply_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNo
familyYes
localeYes
projectIdYes
assetSlotsNoMap template image slot names to owned asset keys.
templateIdYes
captureKeysYes
restoreSavedNoRestore this project’s saved template edits by default. False, or explicit copy/artwork overrides, starts a fresh layout.
panelAssetSlotsNoMap panel positions to image slot maps, e.g. {"1":{"capture":"capture.home"}}.
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description usefully supplements this by explaining that prior edits are restored, other sizes and localizations stay intact, and overrides start a fresh layout. However, it never states plainly what is lost when a fresh layout is started, nor does it mention reversibility or rate/scale limits. The auth requirements (projects:read, projects:write) are a genuine addition beyond the annotations.

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?

Front-loaded with the core action, then preconditions, then the override behavior, then return values and auth. Every sentence carries information, though the dense clause stacking ('Restores prior edits saved in this project, size and language...') takes a second read.

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 destructive, non-idempotent mutation with 10 parameters and no output schema, the description covers return values (saved project, revision, restored), required permissions, and the revision precondition. The main residual gap is what state is destroyed by a fresh layout and how asset slot keys map to captures.

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?

With 10 parameters and only 30% schema description coverage, the description carries real weight: it explains expectedRevision sourcing, captureKeys ordering and ownership, restoreSaved semantics, and that copy/artwork overrides bypass restoration. It says nothing about projectId, family, locale, templateId, or the assetSlots/panelAssetSlots key formats, leaving several parameters documented only by name.

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 ('Switch a device family's template') and adds a distinguishing qualifier ('without waiting for comparison PNGs') that separates it from comparison-oriented siblings. It does not explicitly name apply_panel_template or apply_candidate as the alternatives, so an agent must infer that this is family-level rather than panel-level.

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 concrete preconditions and follow-up steps: read get_project for expectedRevision, send ordered owned captureKeys, then use preview_panel to inspect the result. It also explains the restoreSaved:false path. What is missing is explicit guidance on when to choose this over the sibling template-application tools.

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