Skip to main content
Glama

Create a template

create_template

Creates a new Markdown document template in a space's _templates folder, with placeholders for date, author and title so pages can be generated from it.

Instructions

Creates a new document template in the space's _templates/ folder (create_page refuses that folder). Write {{date}}, {{author}} and {{title}} in the body where a page made from it should get the day, the person and its own title. To make a template of an existing page use save_page_as_template instead. Requires a write-scoped token and an editor role in the space. Returns the template page like create_page, plus its url.

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

Input Schema

NameRequiredDescriptionDefault
spaceYesSpace slug
titleYesTemplate name
markdownNoBody markdown; omit for a blank starter page. Same title rule as create_page: if it does not open with a "# Heading", "# <title>" is added above it.
descriptionNoOne line saying what the template is for; shown by list_templates

Output Schema

NameRequiredDescriptionDefault
idYesPage id
iconNoEmoji icon, if the page has one
kindYesPage kind: doc, board, table, form, base, canvas, artifact, pdf or office
pathYesPath relative to the space root
coverNoCover image URL, if the page has one
orderYesPosition among its siblings
spaceYesSpace slug the page belongs to
titleYesPage title
statusYesPage status
updatedAtYesLast change, ISO timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only give generic hints (readOnly=false, destructive=false, idempotent=false); the description adds the real behavioral context: the special target folder, the auth/role requirement, the return payload (template page like create_page plus its url), and the placeholder interpolation semantics. That is meaningful added value beyond the annotations, consistent with them.

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 tight sentences, no filler: creation scope first, then body/placeholder semantics, then the alternative and prerequisites. Every clause carries information an agent needs.

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 four-parameter create tool with annotations and an output schema, nothing material is missing — folder behavior, auth, sibling routing, placeholder rules and return shape are all covered, so the description does not need to restate return-value details.

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. The description still adds meaning the schema does not: the `{{date}}`, `{{author}}`, `{{title}}` placeholders and where they must appear in the body. It does not describe the `description` field's role beyond what the schema already states.

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 ("Creates a new document template") plus the exact location (`_templates/` folder) and explicitly notes create_page refuses that folder, which distinguishes it from the nearest siblings without requiring a schema read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit alternative for a different intent: "To make a template of an existing page use save_page_as_template instead." It also states prerequisites (write-scoped token, editor role in the space), so the agent knows when the call will fail and when to route elsewhere.

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