Skip to main content
Glama

Manage page templates

manage_templates
Destructive

Create, list, retrieve, save, rename, duplicate, and delete saved page layout templates for the Print Studio editor and AI, including stored editor JSON.

Instructions

Saved page layouts shared by the Print Studio editor and the AI. list (no data, newest first), get {id}, save {name,data,width_mm,height_mm,thumbnail?,pages?,id?} (replaces when id exists), rename {id,name}, delete {id}, duplicate {id,name?}. data is the editor JSON string; the server stores it as is.

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": {
      "action": "<action>"
    },
    "name": "manage_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoTemplate id from list. For save: replaces that template, or creates one with this id
dataNosave: the editor JSON as a string (max 25 MB file in total)
nameNo1-80 characters. A taken name gets " 2", " 3" appended
pagesNosave: page count, default 1
actionYes
width_mmNosave: page width in millimetres
height_mmNosave: page height in millimetres
thumbnailNosave: small preview as a data:image/jpeg;base64 URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/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 earns credit for adding specifics: save with an existing id replaces that template, list returns newest-first, name collisions get " 2"/" 3" appended, and data is stored verbatim. It stops short of stating irreversibility of delete, permission requirements, or what list/get return.

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 one-line purpose, then a compact action grammar using braces and optional markers — very little waste. The telegraphic style is efficient but slightly cryptic, requiring the agent to parse notation rather than read prose.

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 an 8-parameter, destructive, multi-action tool with no output schema, the definition covers every action's required and optional fields and the key mutation semantics. Gaps remain around return shapes and error/permission behavior, but these are modest relative to the 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 coverage is 88%, so the schema already documents nearly every parameter, including the "save:" prefixes and the id replacement semantics. The description's per-action parameter mapping largely restates that in condensed form, adding convenience but little genuinely new meaning beyond 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?

The description states the resource precisely ("saved page layouts shared by the Print Studio editor and the AI") and enumerates every action with its operand shape, so an agent knows exactly what the tool manipulates. It does not explicitly differentiate itself from the closest sibling, manage_presets, leaving the templates-vs-presets distinction to be inferred from names.

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 parenthetical "list (no data, newest first)" and "save ... replaces when id exists" implicitly tell the agent which action to pick for a given intent and which fields each action needs. There is no explicit when-to-use/when-not guidance, no mention of prerequisites or alternatives such as layout_page or manage_presets, so usage must be inferred.

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