Skip to main content
Glama

Save new template

save_template

Save HTML as a reusable template version without an AI call. Returns the template id for render. Does not spend AI credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoTemplate name.
pageNo
tagsNo
sizesNo
schemaNoJSON Schema for the data. Put sample values in examples[0], so the studio can show them. Mark a picture field with "x-thirds-kind": "image" and a colour field with "x-thirds-kind": "colour".
sourceYesTemplate HTML source. Empty source starts a blank design.
input_modeNoHow this new template starts. Default html.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / schema / description
      Added value: +"JSON Schema for the data. Put sample values in examples[0], so the studio can show them. Mark a picture field with \"x-thirds-kind\": \"image\" and a colour field with \"x-thirds-kind\": \"colour\"."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower. The description adds meaningful non-annotation context: no AI credits are spent and a template id is returned for render. It stops short of stating auth requirements or what happens with an empty source (which is actually in the schema, not here).

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?

Three short, front-loaded sentences. Each carries distinct information (what, return value, cost). No waste.

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

Completeness3/5

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

For a 7-parameter creation tool with no output schema and only 57% schema coverage, the description should say more about the resulting artifact (id shape, whether it's a draft, how to render it). It covers the essentials and the cost angle but leaves the return contract and several params thin.

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 description coverage is 57%, which puts the baseline near the middle. The description adds no parameter-level meaning (nothing on name, tags, sizes, page, schema), so it neither compensates for the coverage gap nor adds value over the schema's own inline docs.

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?

Specific verb+resource ('Save HTML as a reusable template version') with a clear distinguishing clause ('without an AI call'). The agent can separate this from create_template (generates via AI) and save_template_version (versions an existing template) without opening schemas.

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 'without an AI call' and 'Does not spend AI credits' clauses imply when to prefer this over AI-generating siblings, but the description never names create_template or save_template_version explicitly. Usage is implied rather than stated.

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