Skip to main content
Glama

Create a page

create_page

Adds a page the way the Pages panel does. On a Xodia template site: a page file that mirrors its folders (src/pages/services/web/Design.tsx) and its route in src/routes.tsx at //, inside the site's layout, with a starter section (data-section="page-header": the title tag, the h1 and a line to replace); folderPage true makes the page at that folder's own address, with its file inside the folder (src/pages/what-we-do/WhatWeDo.tsx) and a starter list of links to the folder's pages to edit. On a React site with its routes in code (/ elements, a routes array or createBrowserRouter): a page file beside the others plus its route and import in that routes file. On a plain HTML site: //index.html with the home page's head, header and footer around the starter section. parent is the folder it goes in. Addresses are lowercase words with dashes, up to 5 folder levels; an address another page, folder or collection uses is refused with address_clash and the reason (a collection's item level, /blog/, belongs to its items unless the collection reserves that slug). Refused with plan_limit past the plan's page limit (the home page plus the plan's pages; the home page and collection pages don't count). Refused with 409 and action ask_agent when Xodia can't change this site's routes safely (route_shape_unsupported, route_unreadable) or the HTML site lists its pages in vite.config (html_pages_listed): then add the page in code yourself, the way the site adds its other pages (skill create-page). Where create_page works, never write the route or page file yourself. A page per collection item is never a page: create_collection makes the collection page. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. The site plan follows in the same change.

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": {
      "title": "<title>",
      "projectId": "<projectId>"
    },
    "name": "create_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOptional: the last part of the address (lowercase, dashes); default from the title
titleYesThe page's name: its h1, its title tag and its label in the Pages panel
branchNoOptional branch; default the branch the workspace has open
parentNoThe folder the page goes in ("services" or "services/web", up to 5 levels); omit for the site root. Missing folders are made by the address
projectIdYesProject id from list_projects
folderPageNotrue: the page at the parent folder's own address (/services), its folder page. slug is ignored

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations disclose only write/non-destructive/non-open-world, so the description carries real weight and delivers: concrete refusal codes (address_clash, plan_limit, route_shape_unsupported, route_unreadable, html_pages_listed) with their causes, and the address rules (lowercase dashes, 5 folder levels, collision with folders and collections). It also sets expectations that the edit is saved immediately while Git push and publish remain the user's actions. Minor gap: it does not describe the success response payload.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, which is good, but it is a single ~1,400-character block with no paragraph breaks, and long parenthetical asides ("with a starter section (data-section=\"page-header\": the title tag, the h1 and a line to replace)") force re-reading. Nearly all content is useful, but the density without segmentation hurts scanability.

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 no output schema and six parameters, the definition covers creation artifacts per site type, address validation, refusal taxonomy, fallback path, and the persistence/publish boundary. An agent has everything needed to decide to call it and to interpret a failure.

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 baseline would be 3; the description adds meaning on top by explaining folderPage behavior (file placed inside the folder, starter list of links, slug ignored) and by spelling out the address constraints that govern slug and parent. `title`'s triple duty (h1, title tag, panel label) is already in the schema, so a little of the text is redundant.

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 ("Adds a page the way the Pages panel does") and then enumerates the exact artifacts created for each of three site shapes (Xodia template, React routes-in-code, plain HTML). This level of specificity makes it unmistakable against siblings like create_collection or create_folder.

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?

Explicitly routes away from itself where another tool wins: "A page per collection item is never a page: create_collection makes the collection page," and "Where create_page works, never write the route or page file yourself." It also names the escape hatch when it refuses (409/ask_agent → write the page in code yourself per skill create-page).

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