Skip to main content
Glama

knowledge_save_page

Add a page, or replace one's text. Adding (collection_id, title, body): Add a page (Markdown) to a collection, optionally inside another page. sources: ids of pages it's based on. Or start it from a template (template_id, from knowledge_outline with templates=true, instead of body; title optional): it gets the template's text with its {{fill-ins}} for you to replace. Replacing (page_id, version, body, and title only to rename it): Replace a page's whole text. version: as you read it; if the page changed since, nothing is saved (read it again). Keep what you weren't asked to change exactly as it was. A heading may end with an id like {#h-3k9x2m4q}: what links to that heading point at. Keep each one at the end of its own heading exactly as written, even when you change the heading's words; never add, copy or move one, and never show it to anyone: quote and answer without it. reason: why, shown in the page's history.

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": {
      "author": "<author>",
      "reason": "<reason>"
    },
    "name": "knowledge_save_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
modelNo
titleNo
authorYes
reasonYes
page_idNo
sourcesNo
versionNo
parent_idNo
template_idNo
collection_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare non-read-only and non-destructive, so the description must carry the rest: it discloses that replace overwrites the page's entire text, that a stale version means nothing is saved, and that reason is recorded in page history. It also warns that heading anchor ids must never be altered or shown, which is real behavioral context an agent could not infer. It says nothing about permissions or what the call returns, but the core risks are disclosed.

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 content is valuable but delivered as a single run-on block of nested parentheses with the add and replace paths interleaved with heading-id rules. The anchor instruction is restated three ways (never add, never copy, never move, never show) when one sentence would do.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, non-read-only mutation tool with no output schema, the description covers mode selection, conflict handling, template fill-ins, and source attribution. The gaps are the required author parameter and the model parameter, which an agent must pass without any explanation of what they mean.

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

Parameters3/5

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

Schema coverage is 0% across 11 parameters, so the description must compensate and it does for most: body, title, sources, template_id, page_id, version, reason, collection_id, and implicitly parent_id ("optionally inside another page"). However author (required) and model are never mentioned, and version's expected format is only described loosely as "as you read it".

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Add a page, or replace one's text") and splits the two modes explicitly with their parameter sets. It also names the sibling knowledge_outline as the source of templates, though the overall framing is dense and front-loaded rather than crisply labeled.

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 clearly states when to use the add path (collection_id, title, body) versus the template path (template_id instead of body) versus the replace path (page_id, version, body). What is missing is guidance on when to reach for this tool versus siblings like knowledge_move_page or knowledge_create_collection, and required fields such as author are never mentioned.

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.