Skip to main content
Glama

Import files as Docmost pages

import_pages

Imports Markdown, HTML, ZIP files, or folders into Docmost, creating linked pages with nested folders and uploaded images at a space root or under a parent page.

Instructions

Creates pages from a .md or .html file, a .zip, or a folder of them on the machine running this server through Docmost's importer, which nests pages by folder, links pages and uploads images, at the space root or under parentPageId.

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": {
      "path": "<path>"
    },
    "name": "import_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to a .md, .html or .zip file or a folder on the machine running this server; ~ means the home directory.
spaceIdNoSpace id from get_workspace; may be omitted when parentPageId is given.
parentPageIdNoPut the imported pages under this page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0
  2. Removedv0.8.0
  3. Addedv0.7.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and idempotentHint=false, but the description adds substantive behavior beyond them: pages are nested by folder, pages are interlinked, images are uploaded, and the path is resolved on the machine running this server. It does not cover partial-failure behavior, re-import duplication, or required permissions, which matter for a multi-page write.

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?

A single sentence, front-loaded with the action and input types, with no filler. It is dense but each clause (formats, importer behavior, destination) carries information.

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

Completeness3/5

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

There is no output schema, so the description should say something about what comes back or how failures across many pages are reported, and it does not. The write semantics and server-local path constraint are well covered, making it adequate but not complete for a multi-page import.

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 all three parameters are already documented, and the description only restates the destination choice (space root vs. under parentPageId). It reinforces that the destination is optional/alternate but adds no syntax or format detail beyond the schema.

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 opens with a specific verb and resource ("Creates pages") and enumerates accepted inputs (.md, .html, .zip, folder), which clearly separates it from single-page tools like create_page. It stops short of naming any sibling, so differentiation must be inferred from the file-based import framing 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?

Usage is implied by the input-format list: an agent can infer this is the tool for bulk file import rather than authoring one page. There is no explicit when-to-use/when-not-to-use statement and no routing to create_page or upload_attachment for the single-file or single-image case.

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