Skip to main content
Glama

Create Template

create_template

Save a reusable template. kind=html is HTML/CSS with {{token}} placeholders, rendered to PNG; kind=generative is a prompt with {{token}} placeholders, run on a generative model. Parameter types: text, image_url, color, number, boolean. Boolean parameters drive {{#name}}...{{/name}} (kept when true) and {{^name}}...{{/name}} (kept when false). Every {{token}} must match a parameter. Names are unique per account, ignoring case. Render with render_template.

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>"
    },
    "name": "create_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNohtml kind: markup with {{token}} placeholders.
kindNoDefault: html.
nameYesTemplate name.
sizesNohtml kind: named output sizes; one may set isDefault.
widthNohtml kind: default width. Required unless sizes is given.
heightNohtml kind: default height. Required unless sizes is given.
promptNogenerative kind: prompt with {{token}} placeholders.
media_typeNogenerative kind: output type.
parametersNoThe {{token}} inputs: name, type, optional default, description and required.
descriptionNoWhat this template is for.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
model_paramsNogenerative kind: default model parameters.
recommended_modelNogenerative kind: model ID.
reference_asset_idsNogenerative kind: Library assets passed as references.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, but the description adds real behavioral constraints: names are unique per account ignoring case, and every {{token}} must match a declared parameter. Those validation rules materially affect how an agent constructs a call. It omits what happens on a duplicate name (hard error vs. overwrite) and any auth/quota context, which the annotations do not cover.

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?

Dense but front-loaded: what it saves, the two kinds, then token/validation rules, then the render pointer. Every sentence carries information with no filler. It is a single undifferentiated block of clauses, which slightly hurts scanability for a 14-parameter tool.

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 14-parameter, nested-object mutation tool with no output schema, the description covers the critical decision (kind), the token contract, and the uniqueness constraint. Many kind-specific fields (sizes, media_type, recommended_model, model_params, reference_asset_ids) are left entirely to the schema, which is acceptable at 100% coverage but means the description alone would not fully inform an agent.

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 genuine semantics beyond the schema: the enumerated parameter types and especially the boolean conditional block syntax ({{#name}}...{{/name}} kept when true, {{^name}}...{{/name}} kept when false). That template-language behavior is not derivable from the enum alone and directly shapes how the agent writes html/prompt bodies.

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?

"Save a reusable template" gives a specific verb and resource, and the two-sentence breakdown of kind=html vs kind=generative tells the agent exactly what artifact is being persisted. It also names render_template as the execution counterpart, so the create/render split is clear. It stops short of contrasting with update_template, but the create framing is unambiguous.

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?

The description effectively routes the agent: pick kind=html for markup rendered to PNG, kind=generative for a prompt run on a model, and use render_template to actually produce output. That covers when to use each mode. There is no explicit guidance on when not to use this tool (e.g., editing an existing template), which keeps it from a 5.

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.