Skip to main content
Glama

Delete a Docmost page

delete_page
DestructiveIdempotent

Moves a page and its subpages to the space trash so they can be restored later, without permanent deletion.

Instructions

Moves a page and its subpages to the space's trash, from which they can be restored, and never deletes anything permanently.

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": {
      "pageId": "<pageId>"
    },
    "name": "delete_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesPage id, slug id, or the full page URL copied from the browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the mutating profile is known. The description adds genuinely non-obvious behavior beyond that: subpages cascade into the trash and the operation is reversible. It does not cover permissions required, behavior on a missing page id, or the effect on the parent page.

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

Conciseness5/5

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

One front-loaded sentence with four short clauses, each earning its place: the resource, the cascade scope, the destination, and the reversibility guarantee. No filler or repetition.

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 a one-parameter, no-output-schema mutation tool, the description covers the two facts an agent most needs: the cascade to subpages and that nothing is permanently destroyed. Minor gaps (permitting/authorization, no-op behavior for an unknown id) remain, but nothing essential is missing.

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 description coverage is 100% and the single pageId parameter is already documented as accepting an id, slug id, or full URL, so the schema carries the semantics. The description says nothing about the parameter, so baseline 3 applies.

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?

States a concrete verb+resource ('Moves a page and its subpages to the space's trash') and adds the cascade scope plus the non-permanent semantics, which implicitly separates it from a permanent delete. It never names a sibling such as restore_page or list_trash, so routing is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not, or named alternative; the only guidance is implied by 'from which they can be restored', which tells an agent this is the safe removal path. An agent must infer that restore_page is the inverse operation and that no alternative delete tool exists.

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