Skip to main content
Glama

List Wiki attachments

wiki_attachments_list
Read-onlyIdempotent

Attachments (name, size, mime type) on a page id, auto-paginated (drains next_cursor).

Instructions

Attachments (name, size, mime type) on a page id, auto-paginated (drains next_cursor).

Capped at the configured item cap unless limit is given. This is the list surface; downloading an attachment's bytes is CLI/SDK-only (binary blobs are not an MCP payload).

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

Input Schema

NameRequiredDescriptionDefault
allNoReturn everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.
nextNoGo on from where an earlier call stopped, with the `next` it returned: the token carries its listing; give what is required again, and nothing else but the limit.
limitNoMax attachments to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
page_idYesNumeric page id, from ``pages_get_meta`` or a page ref.
order_byNoSort field.
order_directionNoSort direction for ``order_by``.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.142.2
    • addedInput schema / properties / all
      Added value: +{
      +  "default": false,
      +  "description": "Return everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Max attachments to return; omitted means the configured cap (YCLI__HTTP__MAX_ITEMS)."New value: +"Max attachments to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS)."
    • addedInput schema / properties / next
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Go on from where an earlier call stopped, with the `next` it returned: the token carries its listing; give what is required again, and nothing else but the limit."
      +}
  2. Changed1 schema field changedv0.122.1
    • changedInput schema / properties / page_id / description
      Previous value: -"Numeric page id, from ``pages_meta`` or a page ref."New value: +"Numeric page id, from ``pages_get_meta`` or a page ref."
  3. First observedv0.67.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the safety profile is covered; the description still adds non-obvious behavior — automatic cursor draining, a configured item cap that applies unless `limit` is set, and the fact that binary blobs are deliberately not part of the response. The phrase 'auto-paginated (drains next_cursor)' sits slightly awkwardly next to the schema's manual `next` parameter, but this is ambiguity rather than a contradiction.

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?

Two short sentences with the return shape and pagination behavior front-loaded; nothing is filler. Minor noise from RST-style double-backtick markup, but the structure is otherwise tight.

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?

With no output schema, the description usefully names the returned fields and explains the default cap, which is exactly what an agent needs before calling. It omits permission/auth expectations for reading a page's attachments, a small remaining gap for a 6-parameter tool.

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%, so the schema already explains page_id, limit, next, all, and ordering. The description only restates the cap/limit relationship ('unless ``limit`` is given'), adding minimal meaning beyond structured fields; baseline 3 applies.

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?

States the resource (attachments), the scope (on a page id), and the payload shape (name, size, mime type), and explicitly frames itself as 'the list surface' rather than a download/read operation, which separates it from wiki_attachments_get and the upload/delete siblings without needing their schemas.

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 a clear when-not: byte downloading is CLI/SDK-only, so an agent should not look for a bytes-returning MCP tool. Also tells the agent the listing is capped by default and that `limit` overrides the cap, plus the schema's `all` field steers long listings to piecewise paging. No explicit statement of prerequisites, but the routing guidance is real.

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

Deploy Server

Other Tools