Skip to main content
Glama

Create or revise a template draft

super_template_save

Write a template draft only you can publish from. Without expectedVersion it creates (refused if the slug exists); with it, it revises the head (refused if the head moved past it), and a revision that changes nothing cuts no version. A json slot needs schema. Runtime files (≤512 KiB decoded) need a json slot and an index.html with one <script id="sa-template-values" type="application/json">. Others build from it only once super_release_template releases it; a revision never changes a released version.

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": {
      "slug": "<slug>",
      "title": "<title>",
      "description": "<description>",
      "spec": "<spec>"
    },
    "name": "super_template_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
demoNoSlug of your artifact to link as the demo (linked once public). "" clears it.
jobsNoWhat a person hires it for; the first is primary. Create default: from `kind`.
kindNo`dashboard`: a page that mostly shows live data — a label, not a capability.
slugYesKebab-case, 3–64 chars. Permanent.
specYes`slots`, `declaration` (every instance’s policy), optional `comments`, `keywords` (searched), `examplePrompts`.
filesNoRuntime files, `index.html` required. Omitting them on a revision drops the runtime from that new draft version only.
titleYes
promptNoA prompt a person copies to ask for one.
sampleNo`{"values": {…}}`, rendered in the preview.
audienceNo1–3, or `everyone` alone (the default).
categoryNoDeprecated; read as `jobs` when `jobs` is absent.
guidanceNoOptional notes for whoever fills it.
useCasesNoThings to build from it; the build prompt draws on them.
changeNoteNoRevisions: one line on why, for the changelog.
companionsNoExtra artifacts each publish makes at {slug}-{role}, same values (e.g. a stage for a host). Bind the primary with `source: {artifact: "@primary", streams}`. Released: add, never remove.
descriptionYes
installAfterNoYour note, appended to the build prompt as a suggestion.
samplePublicNoThe sample may appear on the public listing page.
expectedVersionNoThe version you revised. Present: revise. Absent: create.
installArchetypeNoAfter install: `scenarios` (default) offers three builds; `explainer` builds one from the sample; `interview` asks three questions first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations (which only say it is a non-destructive write): refusal conditions on slug collision and stale head, the no-op-revision rule ('a revision that changes nothing cuts no version'), a 512 KiB decoded cap on `files`, the `json`-slot-plus-`index.html`/`sa-template-values` script requirement, and the guarantee that a revision never alters a released version. These are exactly the surprises an agent would otherwise hit at call time.

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 create/revise distinction, then constraints, with no filler sentences. Some phrasing is compressed to the point of being cryptic ('cuts no version', 'revises the head'), and the file-format requirements arrive as one long clause, but every sentence carries real rules.

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 20-parameter, nested-object mutation with no output schema, the description covers the mode decision, failure modes, draft-vs-released lifecycle, and file constraints. It does not say what a successful save returns (version number, slug, draft identity) or how `companions` interact at publish time, leaving modest gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 90%, so the baseline is 3, but the description adds genuine semantics the schema does not: `expectedVersion` present/absent means revise/create, and `files` carries a decoded size limit plus a structural requirement. It leaves other high-impact optional parameters (`companions`, `jobs`, `audience`, `demo`) entirely to the schema, but those are well documented there.

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?

States a specific verb and resource ('Write a template draft') and immediately frames the two modes, create vs revise, keyed on `expectedVersion`. It also names the boundary against `super_release_template` ('Others build from it only once super_release_template releases it'), so an agent can place it among siblings without reading the schema.

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 explicit routing rules: omit `expectedVersion` to create (refused if the slug exists), include it to revise the head (refused if the head moved past it). It names `super_release_template` as the path to making a draft usable by others, which is the key alternative. It does not spell out where to go for listing or non-save template operations, but the main selection decision is covered.

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.