Skip to main content
Glama

Add later versions to an imported page (import)

import_page_versions

Append new versions, oldest first, to an imported page's history so you can send long histories in batches or add a final version with corrected links. The last version becomes the current text.

Instructions

Needs a token with the import:write scope whose owner is a global admin. Nothing is emailed or notified, and no per-row audit events are written. Only works in a space created with import_create_space (otherwise 403 IMPORT_SPACE_NOT_IMPORTED). Append versions (oldest first) after the page's current one, for a second pass, a long history sent in batches, or a final version with corrected links. They must be newer than what the page already has. The last one becomes the current text. Batches above 500 versions or ~20 MB are split automatically. Not idempotent: do not resend a batch that succeeded. Body = GitHub-flavoured Markdown (tables, task lists, fenced code). Raw HTML is NOT rendered (shown as text), so convert it. Sophia syntax: files ![name](attachment:<uuid>); mentions @[Name](user:<uuid>); panels = blockquote whose first line is > [!INFO], > [!NOTE], > [!SUCCESS], > [!WARNING] or > [!ERROR]; internal links [Title](/sophia/spaces/<KEY>/pages/<pageId>); Kanbio ticket keys written as plain text (e.g. PROJ-12; not inside code or links) link automatically. Links may only point to http(s), mailto, /site-paths or #anchors; images only to attachment: or http(s).

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": {
      "page_id": "<page_id>",
      "versions": "<versions>"
    },
    "name": "import_page_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesSophia page id (uuid), from get_page_tree, search_pages or recent_pages.
versionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the supplied annotations: discloses auth requirements (import:write scope, global-admin owner), side-effect profile (nothing emailed or notified, no per-row audit events), failure mode with error code, automatic batching above 500 versions or ~20 MB, and last-write-wins semantics. That is exactly the context an agent needs before calling a non-idempotent mutation.

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?

Every sentence carries information — no filler — but it opens with the token scope rather than the operation, so the purpose arrives second, and the body-format clause is a dense run-on. Slightly better front-loading and paragraphing would make it scannable without losing content.

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 non-idempotent mutation with no output schema, the description covers auth, preconditions, error code, side effects, batch limits, ordering, and content syntax. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%, and the description compensates heavily: it defines ordering of the versions array, the relative-time constraint against existing versions, which element becomes current, and a detailed body format contract (GitHub-flavoured Markdown, no raw HTML, attachment/user/panel/link syntaxes, allowed link and image targets). This is meaning the schema does not carry.

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: "Append versions (oldest first) after the page's current one", and clarifies the effect ("The last one becomes the current text"). Combined with the prerequisite that the page live in an import_create_space space, an agent can tell this apart from import_page (initial import) and update_page without opening schemas.

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 scenarios ("a second pass, a long history sent in batches, or a final version with corrected links"), an explicit precondition (space created with import_create_space, else 403 IMPORT_SPACE_NOT_IMPORTED), and an explicit exclusion ("Not idempotent: do not resend a batch that succeeded"). Ordering constraint ("must be newer than what the page already has") further bounds valid use.

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