Skip to main content
Glama

Promote model to template

layerz_promote_template
Idempotent

Promote a model you own into a reusable template — flips it in place (no copy), so it keeps its content and stays editable, and surfaces in layerz_list_templates. The template's blueprint is derived on demand and its usage guide IS the model's FINANCE.md, so edit the guide later via layerz_set_finance_md on the same model. scope defaults to user (private, Pro feature). scope: 'system' publishes into the curated onboarding catalog visible to everyone and is admin-only. Not available for read-only or model-scoped API keys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTemplate title — renames the model in place when it differs.
scopeNoTemplate scope. `user` (default) = private, owner-only, Pro-gated. `system` = curated public catalog, admin-only.
summaryYesRequired: short human-readable note (3–100 chars) summarising what this change does. Shown as the label in the model version history. Be specific (e.g. "Renamed Revenue to Net Revenue", "Imported 2024 OPEX from Excel").
model_idNoTarget model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys.
descriptionNoOptional usage guide (FINANCE.md). Leaves the model’s own when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description adds rich behavioral context beyond the annotations: it flips the model in place without copying, keeps content editable, derives the blueprint on demand, links the usage guide to FINANCE.md, and explains scope-based visibility and admin gating. No contradiction with idempotentHint or destructiveHint.

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 dense sentences with no filler. The core behavior is front-loaded, and each subsequent clause adds essential operational detail (scope, admin restriction, key restrictions, edit path).

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?

Despite having no output schema, the description is complete for correct invocation: it covers the operation, side effects, ownership precondition, scope semantics, admin-only behavior, API-key restrictions, and how the usage guide is managed. The required parameters are already fully documented in the schema.

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 100%, so the baseline is 3, but the description adds meaningful semantics: scope defaults and permissions, model-ownership requirements, API key restrictions, and the FINANCE.md relationship. It does not add much beyond the schema for name or summary, but the added context is material.

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?

The description opens with a specific verb and resource: 'Promote a model you own into a reusable template.' It clearly distinguishes this from sibling tools by noting the in-place flip (no copy) and the concrete outcome of appearing in layerz_list_templates.

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?

It gives clear when-to-use context: promote a model you own, with scope defaults and admin-only restrictions for system scope. It also states availability constraints ('Not available for read-only or model-scoped API keys'), though it does not explicitly name alternative tools for comparison.

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