Skip to main content
Glama

List Docmost page attachments

list_attachments
Read-only

Lists files and images uploaded to a specific page, newest first, with ID, name, type, size, uploader, and URL for reviewing or retrieving page media.

Instructions

Lists the files and images uploaded to a page, newest first, with each file's id, name, type, size, uploader and URL.

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": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to return; defaults to 20.
cursorNonextCursor from the previous call, to fetch the next results.
pageIdYesPage id, slug id, or the full page URL copied from the browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds behavior beyond that: results are ordered newest first, and each record includes id, name, type, size, uploader and URL — useful since there is no output schema. It does not mention pagination behavior in the prose, though the schema covers the cursor and limit parameters.

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?

A single front-loaded sentence that states the action, scope, ordering and payload with zero redundant wording.

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 simple read-only list tool with full schema coverage, the description supplies what the structured fields do not: result ordering and the shape of each returned record, which matters since no output schema exists. Minor gaps remain around pagination expectations and empty-result behavior, but nothing critical for correct invocation.

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 schema already explains pageId (id, slug id, or full URL), limit (max 100, default 20) and cursor (nextCursor from previous call). The description adds only a light contextual hint that the target is a page, so the baseline 3 is appropriate.

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?

The description opens with a specific verb and resource ('Lists the files and images uploaded to a page') and adds scope details (ordering, returned fields). No sibling in the provided set lists attachments, so an agent can select this tool without ambiguity.

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 phrase 'uploaded to a page', which signals the tool is for inspecting a single page's attachments. However, there is no explicit when-to-use guidance, no mention of related operations such as delete_attachment or import_files, and no stated preconditions.

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