Skip to main content
Glama

Promote model to template

layerz_promote_template
Idempotent

Promotes a model the caller owns into a reusable template in place: no copy, the model keeps its content and stays editable, and it appears in layerz_list_templates. Its usage guide is the model's FINANCE.md. scope: 'user' (default) is private and Pro-gated; scope: 'system' publishes into the curated catalog visible to every account and is admin-only. Not advertised to model-scoped or read-only keys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTemplate title; renames the model in place when it differs.
scopeNo`user` (default): private, owner-only, Pro-gated. `system`: curated public catalog, admin-only.
summaryYesShort note (3–100 chars) describing the change, stored as the label of the resulting version. Examples: "Renamed Revenue to Net Revenue", "Imported 2024 OPEX from Excel".
model_idNoTarget model UUID. Required for user-scoped API keys; validated against the bound model for model-scoped keys.
descriptionNoUsage guide (FINANCE.md). The model keeps its own when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / description / description
      Previous value: -"Optional usage guide (FINANCE.md). Leaves the model’s own when omitted."New value: +"Usage guide (FINANCE.md). The model keeps its own when omitted."
    • changedInput schema / properties / model_id / description
      Previous value: -"Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys."New value: +"Target model UUID. Required for user-scoped API keys; validated against the bound model for model-scoped keys."
    • changedInput schema / properties / name / description
      Previous value: -"Template title — renames the model in place when it differs."New value: +"Template title; renames the model in place when it differs."
    • changedInput schema / properties / scope / description
      Previous value: -"Template scope. `user` (default) = private, owner-only, Pro-gated. `system` = curated public catalog, admin-only."New value: +"`user` (default): private, owner-only, Pro-gated. `system`: curated public catalog, admin-only."
    • changedInput schema / properties / summary / description
      Previous value: -"Required: 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\")."New value: +"Short note (3–100 chars) describing the change, stored as the label of the resulting version. Examples: \"Renamed Revenue to Net Revenue\", \"Imported 2024 OPEX from Excel\"."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the generic safety profile (non-read-only, non-destructive, idempotent, open-world); the description adds the in-place mutation semantics, that content is preserved and stays editable, the publish-visibility consequence of `system` scope, and permission gating. These are exactly the traits an agent needs before invoking a mutation and are not derivable from the annotations.

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?

Dense but front-loaded: the in-place nature comes first, then discoverability, then scope/permission constraints. Every clause carries a distinct fact (no copy, editable, list visibility, scope gating, key-type exclusion) with no filler.

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 mutation tool with no output schema, the description covers side effects, reversibility implications (content preserved), visibility changes, auth requirements, and key-scope exclusions. An agent has everything needed to decide and call correctly.

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 real meaning: it identifies the `description` field as the model's FINANCE.md usage guide that is kept when omitted, and characterizes what `system` scope actually does (curated public catalog). The rest largely restates the enum descriptions.

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+resource ('promotes a model ... into a reusable template in place') and immediately distinguishes itself from copy-based alternatives by clarifying no copy is made and the model stays editable. The mention of `layerz_list_templates` gives an agent a concrete downstream effect to recognize.

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?

Explains the conditions that select each scope: `user` = private and Pro-gated, `system` = curated catalog and admin-only, plus an explicit exclusion ('Not advertised to model-scoped or read-only keys'). It stops short of naming when to promote in place versus building a separate template from a blueprint, so it is strong context rather than full alternative routing.

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