Skip to main content
Glama

Save a page as a template

save_page_as_template

Copies an existing page (and subpages by default) into the space's _templates folder for reuse with create_page_from_template; the original stays unchanged.

Instructions

Copies an existing page (subpages included unless includeChildren is false) into the space's _templates/ folder so it can be reused with create_page_from_template; the original is left as it is. {{date}}, {{author}} and {{title}} written in a document are filled in when a page is made from the template. Requires a write-scoped token and an editor role in the space; the copy carries only what the caller may see. Returns the template page (its id is what create_page_from_template takes), 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": {
      "id": "<id>"
    },
    "name": "save_page_as_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the page to copy into the templates
titleNoThe template's name; omitted: the page's own title
descriptionNoOne line saying what the template is for; shown by list_templates
includeChildrenNoBring the page's subpages along (default true)

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.3/5.0
Behavior3/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) the description adds real value: the original page is untouched, the copy is permission-trimmed to what the caller can see, placeholders like {{date}} and {{author}} are filled at instantiation, and auth requirements are spelled out. What it does not disclose is what a repeated call does, so it is silent on the duplicate-creation behavior that idempotentHint=false implies.

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 dense sentences, front-loaded with the action and destination, then side effects, then auth, then return value. Nothing is redundant with the schema or annotations.

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?

Permission requirements, visibility scoping, the semantics of placeholders, and the fact that the original is preserved are all covered; an output schema exists, so the mention of the returned page and url is a helpful bonus rather than a necessity. An agent has everything needed to call this 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 already 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains that includeChildren defaults to true, that the title parameter can default to the page's own title, and that the returned id is what create_page_from_template expects. That is useful semantic glue.

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?

The description states a specific verb and resource (copy an existing page into the space's `_templates/` folder) and immediately ties it to how the result is consumed via create_page_from_template. An agent can distinguish it from sibling tools like create_page_from_template or create_template without opening any schema.

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 gives clear context for when this applies (turn an existing page into a reusable template) and names the downstream tool that consumes the output. It also states prerequisites, a write-scoped token and an editor role, but it does not explicitly contrast itself with create_template or say when not to use it.

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