Skip to main content
Glama

Edit a template

edit_template
Destructive

Change a template with the design agent from a plain-language instruction (10–30 AI credits, up to 12 more for each carousel page after the first): restyle, resize, rewrite sample text, apply the brand, add slides, animate it as a video. Saves the result over the workspace template (or as a copy with saveAsCopy; library templates are always copied) and returns it with its parameters. Parameter keys are kept unless the instruction is about them.

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": {
      "templateId": "<templateId>",
      "instruction": "<instruction>"
    },
    "name": "edit_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoThe page the instruction is about (default 1)
brandNotrue (default): use the workspace's brand library (colours, fonts, logo); false: none; or explicit colors / fonts / logo
saveAsCopyNoSave the result as a new template and leave this one unchanged (default false)
templateIdYesA template id from list_templates (a library template is saved as a copy in the workspace)
instructionYesWhat to change, e.g. "make the headline bigger and use our brand colours", "turn it into a 5-slide carousel", "animate it as a video"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by spelling out the exact destruction model: the result is written over the workspace template unless saveAsCopy is set, and library templates are always copied rather than mutated. It also discloses the credit cost, the return value (the template with its parameters), and the non-obvious rule that parameter keys are preserved unless the instruction targets them.

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-loads the action and cost, then layers capabilities, save semantics, and return value; almost every clause carries information. It reads as one long run-on sentence, which slightly hurts scanability for such a dense payload.

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

Completeness5/5

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

For a destructive, billable mutation with no output schema and a free-text required instruction, the description covers the critical unknowns: overwrite risk, the copy escape hatch, credit cost, and what comes back. An agent can call this correctly and warn the user about cost and data loss.

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 100%, so all five parameters are already documented in the schema, and the description largely restates saveAsCopy and brand behavior rather than adding syntax. The one non-obvious addition is the guarantee that parameter keys survive the edit, but that concerns output rather than input semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Change a template') and immediately enumerates the concrete operations available (restyle, resize, rewrite sample text, apply brand, add slides, animate as video). This distinguishes it cleanly from a creation-oriented sibling like generate_template without needing to name it.

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 operative context: the input is a plain-language instruction, the cost is 10–30 AI credits plus up to 12 per extra carousel page, and library templates are always copied. It does not explicitly say when to prefer this over generate_template (regenerate vs. edit), so an exclusion statement is the main missing piece.

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