Skip to main content
Glama

List files of a page

list_attachments
Read-only

Lists a wiki page's ready attachments with name, type, size, and the embed token needed to display each file in the page body.

Instructions

The ready files of a page: name · type · size · the token ![name](attachment:<uuid>) that shows the file in a body.

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": {
      "page_id": "<page_id>"
    },
    "name": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesSophia page id (uuid), from get_page_tree, search_pages or recent_pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds one real behavioral fact beyond that: only 'ready' files are returned, implying pending/failed uploads are excluded. It says nothing about ordering, pagination, or what an empty result looks like.

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 compact line with the payload fields front-loaded and no filler. The telegraphic fragment style ('name · type · size · token') is efficient but slightly cryptic at first read.

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 read tool with no output schema, the description usefully doubles as return-value documentation and is backed by full schema coverage and read-only annotations. Only minor gaps remain, such as ordering or whether the list can be empty.

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% and the page_id property already documents the uuid format and its source tools (get_page_tree, search_pages, recent_pages). The description adds no further meaning about the parameter, so the baseline of 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?

The description names the resource ('the ready files of a page') and enumerates exactly what each entry carries (name, type, size, embed token), which lets an agent distinguish it from upload_attachment/import_attachment by the 'ready' qualifier. It lacks an explicit verb, so the read-only listing action is inferred from the title 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 Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as get_page or import_attachment. The only hint is that the returned token can be embedded in a body, which implies a read-then-compose workflow but never states it.

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