Skip to main content
Glama

Export Docmost pages to a file

export_pages

Export Docmost pages or entire spaces as Markdown or HTML files, or as .zip archives with subpages and attachments. Saves to a local path and returns the file location and size.

Instructions

Saves a page as a Markdown or HTML file, or as a .zip when it includes subpages or attachments, or every page of a space as a .zip, which needs space admin rights, to a path on the machine running this server and returns the path and size.

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": {
      "format": "<format>",
      "outputPath": "<outputPath>"
    },
    "name": "export_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesFile format of the exported pages.
pageIdNoThe page to export; give this or spaceId.
spaceIdNoSpace id from get_workspace, to export the whole space.
overwriteNoReplace an existing file at that path; defaults to false.
outputPathYesFile path on the machine running this server, or an existing folder to save under Docmost's file name; ~ means the home directory.
includeChildrenNoInclude a page's subpages, which makes a .zip; defaults to false.
includeAttachmentsNoInclude images and attached files, which makes a .zip; defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety posture is largely covered. The description adds real value with the space-admin prerequisite and the fact that it returns the path and size, but says nothing about overwrite behavior, filesystem errors, or side effects on the host, which matter for an open-world write-to-disk tool.

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?

Front-loads the primary action and wastes no sentences, but it is a single ~60-word run-on chain of "or ... or ... to a path ... and returns" clauses that is harder to parse than a short bulleted breakdown would be.

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 7-parameter, no-output-schema mutation-ish tool, it covers the branches (page vs space, zip conditions), the auth prerequisite, and the return value. Minor gaps remain on overwrite semantics and failure modes, but nothing essential to invoking it correctly 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 coverage is 100%, so every parameter is already documented, including the pageId/spaceId exclusivity, overwrite default, and outputPath semantics. The description's contribution (linking includeChildren/includeAttachments to .zip output) is largely a restatement of what the schema already says, 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 and resource: "Saves a page as a Markdown or HTML file" plus the space-level variant. It is specific about outputs (file, .zip) and is distinguishable from import_pages by direction, but it never names a sibling explicitly, so differentiation relies on the reader's inference.

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?

Gives clear conditional context: use includeChildren/includeAttachments when the export must include subpages or attachments, use spaceId for a whole space, and that the space route requires admin rights. It stops short of explicit when-not guidance or naming alternatives such as get_page for read-only retrieval.

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