Skip to main content
Glama

Create a page from a template

create_page_from_template

Creates a new wiki page by copying a space template, including its subpages, under a chosen parent path, with date, author and title placeholders filled in.

Instructions

Creates a new page by copying a template of the space (an id from list_templates), subpages included, under parentPath. In the copied documents {{date}}, {{author}} and {{title}} are filled in ({{title}} is the new page's title). Fill or adjust the copy afterwards with update_page. Requires a write-scoped token and an editor role in the space; the copy carries only what the caller may see. Returns the new 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": {
      "templateId": "<templateId>",
      "space": "<space>",
      "parentPath": "<parentPath>"
    },
    "name": "create_page_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceYesSpace slug (the template's space)
titleNoTitle of the new page; omitted: the template's own title
parentPathYesParent directory path relative to the space root for the new page; "" for the space root
templateIdYesId of the template page, from 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.6/5.0
Behavior5/5

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

Annotations only declare the safety profile (write, non-destructive, non-idempotent), and the description adds substantially beyond that: subpages are copied recursively, {{date}}/{{author}}/{{title}} are substituted, a write-scoped token plus editor role is required, and the copy is limited to what the caller may see. It also notes the response adds a url. Nothing conflicts with idempotentHint=false, since each call makes a new page.

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?

Four dense sentences with the core action front-loaded and no filler, covering placeholders, prerequisites, and return shape in order. The closing "Returns the new page like create_page" leans on another tool's shape even though an output schema exists, which is slight redundancy.

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 rich annotations and a full output schema, this description covers everything an agent needs: source of the id, recursive copy semantics, placeholder substitution, auth/role prerequisites, visibility scoping, and follow-up editing. Return values need not be spelled out given the output 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 real meaning by tying `title` to the {{title}} placeholder filled in the copy and by identifying templateId's authoritative source (list_templates). The parentPath behavior is already fully documented in the schema, hence not a 5.

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?

Uses a specific verb+resource ("Creates a new page by copying a template") and immediately scopes it with "subpages included, under `parentPath`", which cleanly separates it from create_page (blank page), create_template, and list_templates (the id source). An agent can tell which sibling to pick without inspecting schemas.

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 states the templateId must come from list_templates and that post-copy edits belong to update_page, giving clear sequencing. The gap is that it never explicitly contrasts itself with create_page beyond the passing "Returns the new page like create_page" remark, so the when-to-prefer-this-over-a-blank-page decision is only implied.

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