Skip to main content
Glama

templates

Browse, inspect, and fork read-only agent architecture molds into new named draft agents, with optional parent sub-agent wiring, model selection, and category assignment.

Instructions

Protected catalog of forkable agent templates ("architecture molds"). action: list (browse the molds) | get (template_id → full config) | use (template_id + display_name → fork the mold into a NEW named draft agent; composite molds fork their sub-agent templates too; optional as_subagent_of=<profile_id> wires the new agent into that parent's sub-agents; optional model_id sets the new agent's model instead of the template's; slug, left blank where generic agents are on, is made from the name — "Support desk" -> support-desk; optional agent_type= files the new agent under that category, and an unknown category refuses the call before anything is created). Templates are read-only — there is no create/edit/delete.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
slugNoSlug for the new agent (default: derived).
actionNoOperation to run: list | get | use. The tool description lists what each action needs.list
model_idNoagent_models UUID (models action=list).
agent_typeNouse: put the new agent (and the sub-agents made with it) in this category — a category slug from agent_types(action='list'). '' = uncategorised.
template_idNoTemplate (mold) profile UUID (templates action=list).
display_nameNoName of the new agent forked from the mold.
as_subagent_ofNoWire the new agent in as a sub-agent of this profile.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose important traits: templates are read-only with no create/edit/delete, composite molds also fork sub-agents, and slug/agent_type behavior including pre-creation validation. However it says nothing about permissions, whether forked drafts are drafts versus live agents, or what a failed fork leaves behind. Useful but not a complete behavioral picture for an 8-parameter, three-action tool.

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?

The catalog definition is front-loaded and the action breakdown follows immediately, so an agent can stop reading after the first lines and still act. The dense parenthetical stacking in the use-action clause makes it harder to scan than it needs to be, but no sentence is filler.

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?

An output schema exists, so return values need not be described, and the description covers the read-only stance, fork semantics, defaults, and a key error case. The remaining gaps — permission requirements and how this differs from the sibling fork_profile/get_profile tools — are the notable omissions for a tool of this complexity.

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 coverage is 100%, so the baseline is 3, and the description does extend several parameters with real meaning the schema lacks — slug derivation ("Support desk" -> support-desk), model_id overriding the template's model, as_subagent_of wiring the new agent into a parent, and agent_type also filing sub-agents. It does not touch env at all, leaving that entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource ("protected catalog of forkable agent templates") and enumerates three concrete actions, so an agent knows exactly what it operates on and how. It stops short of differentiating from sibling tools that sound adjacent, notably fork_profile and get_profile/list_profiles, which is the one missing piece for a 5.

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?

Each action carries its own usage contract: get needs template_id, use needs template_id + display_name, and the optional as_subagent_of/model_id/agent_type modifiers are explained with their effects. It also states a failure precondition (an unknown agent_type refuses the call before anything is created). It gives no explicit "use this instead of X" routing to siblings, so it is clear context without exclusions.

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