Skip to main content
Glama

Save a publishing template

save_template

Create or fully replace a local template with reusable variables and platform/account variants; revision checks prevent overwrites, and nothing is published until you approve a preview.

Instructions

Create or fully replace a local template. Use {{variable_name}} in content; optional variable descriptions, defaults and HTTPS URL types. Updates require current expectedRevision; omitted fields reset to defaults. Never publishes. Copy built-ins to a custom ID.

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": {
      "name": "<name>",
      "content": "<content>",
      "id": "<id>"
    },
    "name": "save_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameYes
contentYes
variablesNo
descriptionNo
accountVariantsNo
expectedRevisionNo
platformVariantsNo

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare the safety profile (not read-only, not destructive, not idempotent); the description adds real mutation semantics beyond them: updates require the current expectedRevision, and omitted fields are reset to defaults on a full replace. That reset behavior is a consequential side effect an agent would otherwise miss, though preconditions like permissions or conflict/revision-mismatch handling are not stated.

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?

Five short clauses, front-loaded with the core upsert operation, and every sentence carries information (variable syntax, revision requirement, replace semantics, no publishing, cloning). The telegraphic style borders on cryptic in places but wastes little.

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?

An output schema exists so return values need no explanation, but for an 8-parameter tool with deep nested objects the description omits the two variant maps and the plain name/description fields. It is adequate on the trickiest mechanics (variables, revisions, replacement) yet incomplete on the schema's bulk.

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 0% schema description coverage across 8 parameters, the description must carry the load; it usefully explains the {{variable_name}} placeholder syntax, variable descriptions/defaults, and HTTPS URL types, plus expectedRevision. However, it says nothing about accountVariants or platformVariants (the most complex nested structures with an enum of platform keys), leaving major parameters undocumented.

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?

"Create or fully replace a local template" gives a specific verb pair plus resource and clarifies the upsert semantics that the name alone hides. "Never publishes" separates it from publish/schedule siblings, and the note about copying built-ins to a custom ID distinguishes it from template-consumption tools like render_template.

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 description implies usage context (template authoring, cloning built-ins) and states a hard boundary ("Never publishes"), but it gives no explicit when-to-use/when-not-to-use routing against siblings such as create_draft_from_template or render_template. An agent has to infer that this is the authoring path.

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