Skip to main content
Glama

Add page

add_page

Add a new ONE-OFF page to an existing site (About, Contact, Pricing, a new landing page, etc.). Creates a bare shell (one section with one heading) and returns its root + section ids so you can fill it with insert_nodes / patch_nodes. Writes a new draft version. Pass copy_of with an existing page's slug to start from a copy of that page instead.

DO NOT use add_page for repeating detail pages that share structure (/projects/<slug>, /blog/<slug>, /work/<slug>, /publications/<slug>, /searches/<slug>, etc.). Those resolve via the site's collections[] definition + Mustache substitution into a single shared template — they are NOT pages[] entries. To add an item to an existing collection, use add_content_item (with the matching content_type). To stand up a new collection on a site that doesn't yet have one, use create_collection (which composes the collections[] entry, an index page, and optional seed items in one call). add_page is wrong every time for collection detail pages: it bakes the row as a static tree, the index page's <collection-list> won't reflect it, and sitemap/SEO won't see it.

Input Schema

NameRequiredDescriptionDefault
slugYes
titleYes
copy_ofNoMake the new page a COPY of this existing page (e.g. '/services/plumbing' to start '/services/roofing' from it): its whole tree is cloned with fresh ids, then edit the copy. Omit for a page built from the site's own sections.
site_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (non-destructive write), but the description adds real behaviour: creates a bare shell of one section + one heading, returns root and section ids for insert_nodes/patch_nodes, writes a new draft version, and what breaks if misused (baked static tree, collection-list won't reflect, sitemap/SEO miss). That is context beyond the annotations.

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?

Front-loaded with the core action and return shape, then the exclusion. The parenthetical lists of example slugs are a bit heavy, but each clause carries real routing or behavioural information.

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 mutating tool with no output schema, the description still discloses the return value (root + section ids) and the follow-up tools to use. Combined with the exclusion section, an agent has everything needed to call it correctly or route elsewhere.

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 only 25%, so the description carries much of the burden: it explains `copy_of` semantics and the slug-vs-title expectation implicitly through the example copy flow. The remaining params (slug, title, site_id) are self-evident, so no significant gap remains.

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+resource with scope: creates a one-off page, not a collection detail page. It explicitly distinguishes itself from its nearest siblings (add_content_item, create_collection) by naming the cases it does not handle.

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 explicit when-to-use (About/Contact/Pricing/landing pages), an explicit DO-NOT-use condition (path-parameterised detail pages) and names the correct alternatives for each case. The failure mode of misusing it is also spelled out.

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.

Resources