Skip to main content
Glama

Create a Page

create_page
Destructive

Create one new Page beneath an existing main-tree parent. This never edits or upserts an existing Page. Read the parent first and pass its exact current revision.

A Page is a home for a subject; Data is evidence. When your work needed an understanding the tree has no home for — you pieced it together from scattered sources, or anyone in the company would expect to find it here — propose the Page: a specific title and the purpose it should serve. The body is optional. Write one, with a supporting quote for every Data source it cites, when you already hold the understanding; otherwise leave it out and the Editor writes it from the sources. The purpose is a request: an automatic Architect pass reviews every new Page within minutes and adopts or adjusts its purpose, or renames, moves, merges or deletes it. For a finding or fact the company should keep as evidence, use save_data instead.

Search the tree for the subject before creating anything. A Page that restates one already here is usually merged away again, and the member sees the section they asked for dissolve. Where an existing Page already covers the subject, say which one and offer the alternatives before creating a second: extend it with edit_page, or move_page it to where the member wants it. Name the overlap even when you go ahead and create — an explicit "add a page about X" is an instruction to obey, not a reason to leave the member unaware that X already has a Page, and staying silent is how a section gets built beside the one it duplicates. Create anyway if they say so — someone who has already weighed the overlap must not be argued with — and create without ceremony when nothing covers the subject.

A Page you create is not yours once made: it stays modifiable, mergeable and removable by that curation pass like any other Page unless a member locks it. So when you create a branch because a member asked for one, offer to structure-lock it with set_lock: that is what keeps the name, place and shape they chose from being tidied into the rest of the tree. A locked branch also stops receiving new Pages automatically, which is part of the choice they are making. Offer it; never decide it for them.

Pensieve references and citations

Pensieve reads return internal references as ordinary Markdown links such as [display](https://…/r/CONTEXT/data/ID); the trailing number is that node's id — the data_id the citation entries below take. Keep those links exactly when writing Page prose; the server converts trusted links for the target context back to its canonical stored form. Correction links and detached passage links are not storable and are rejected; copy source-image blocks whole. Do not write bare ids or wikilinks. Foreign links stay external; cross-context links are rejected.

For every non-image Data link you add, or whose sentence you write or change, include one or more {"data_id": ID, "quote": "…"} citation entries. Each quote must be a short, exact, contiguous passage copied from that Data read and must directly support the claim. edit_page carries the citations in prose it leaves as it stands; entries for a source replace its stored quotes. Include no citation entry for a Data node the body does not cite. Archived Data cannot ground a current-state claim; cite the replacement the error names. Page identity comes directly from trusted same-context resolver links, so MCP callers do not send Pensieve's internal page_refs sidecar. Source images and their adjacent source links may be copied back as returned; they do not require a quote entry. Omit citations when no quote entries are needed; missing quotes for Data links and unused entries are rejected.

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

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional complete Markdown body. Omit it to propose the Page by title and purpose; the Editor then writes it from the sources.
titleYesSpecific title for the new child Page.
purposeNoWhat the Page should cover and the question it answers, in a sentence or two (at most 500 characters). Required when body is omitted. A request the Architect adopts or adjusts, not prose readers see.
citationsNoComplete evidence quote sidecar as {data_id, quote} entries for every non-image Data reference in body; omit when none need quotes. Each quote is copied verbatim from that Data node. Missing or unused entries are rejected.
parent_idYesPositive serial id of the existing parent Page.
context_idYesThe destination context id from list_contexts. Required for writes.
parent_expected_revYesExact parent revision returned by the latest Page read.

Output Schema

NameRequiredDescriptionDefault
revYes
urlNoOpens the written Page; for an edit, the History version it produced.
kindYes
titleYes
page_idYes
tree_idYes
warningNo
changeset_idYes
context_run_idYes
affected_page_idsNo
changeset_sequenceYes
collaboration_reloadedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations flag destructiveHint=true, and the description earns that hint by explaining that a created Page is not final: an automatic Architect pass may rename, move, merge or delete it unless a member locks it. It adds the corroborating details an agent needs — citations are validated with missing and unused entries rejected, correction/detached links are rejected, cross-context links are rejected, and the lock offer also stops automatic child Pages.

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?

The core constraint and the search-before-create rule are front-loaded, but the text runs long with rhetorical repetition — "staying silent is how a section gets built beside the one it duplicates" and "someone who has already weighed the overlap must not be argued with" restate points already made. The citation section is dense but mostly load-bearing, so the waste is stylistic rather than fatal.

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 write tool with an output schema (so return values need not be described), the definition covers everything an agent needs: parent revision discipline, optional body versus purpose, citation and link rules, the curation/lock lifecycle, and the overlap-handling policy. Nothing material is left to inference for a seven-parameter mutation.

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 real meaning beyond it — `parent_expected_rev` must come from a fresh read of the parent, `body` is optional with the Editor writing it from sources, and `purpose` is a request the Architect adopts rather than reader-facing prose. The citation rule (one quote per non-image Data link, exact contiguous passage, omit the sidecar when empty) is largely restated from the schema, which keeps this from 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?

First sentence states a specific verb and resource with scope ("Create one new Page beneath an existing main-tree parent") and immediately excludes a sibling behavior ("This never edits or upserts an existing Page"). It also routes the reader to `save_data` for evidence, so the agent can distinguish create_page from edit_page and save_data without opening a schema.

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?

Explicit when-to-use (propose a Page when the tree has no home for an understanding), when-not-to-use (findings/facts go to `save_data`; overlapping subjects should use `edit_page` or `move_page`), and a prerequisite (search the tree first, read the parent and pass its exact revision). It even resolves the ambiguous case — obey an explicit request to create but still name the overlap.

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