Skip to main content
Glama

Attach uploaded files to Wiki page

wiki_attachments_attach

Attach file(s) from finished upload sessions to a wiki page.

Instructions

Attach file(s) from finished upload sessions to a wiki page.

The final step of the upload pipeline: create the session (uploadsessions_create), send the bytes (uploadsessions_parts_upload), close it (uploadsessions_finish), then attach here. For one small file, attachments_upload runs the whole pipeline in a single call. Returns the newly-attached files.

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>",
      "session_ids": "<session_ids>"
    },
    "name": "wiki_attachments_attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
page_idYesNumeric id of the page to attach to.
session_idsYes``session_id`` of each FINISHED upload session to attach.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. First observedv0.67.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare this is a non-read-only, open-world, non-destructive, non-idempotent write. The description adds meaningful behavioral context: it is the final step in the pipeline, requires finished upload sessions, and returns the newly-attached files. It does not explain partial failure behavior or duplicate attachment behavior, so it stops short of a 5.

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?

The description is short, front-loaded, and well structured: the purpose comes first, followed by pipeline context, then the simpler alternative, then the return value. Every sentence adds useful routing or expectation-setting information.

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 three-parameter write tool with full schema coverage and no output schema, the definition covers purpose, prerequisites, alternatives, and return values adequately. It leaves out error behavior and whether reattaching the same session is possible, which keeps it from being fully complete.

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 page_id, session_ids, and dry_run are already documented in the schema. The description reinforces that sessions must be finished and that files are attached to a wiki page, but it adds little parameter-level detail beyond the schema.

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 states a specific verb and resource: "Attach file(s) from finished upload sessions to a wiki page." It clearly distinguishes this final pipeline step from uploadsessions_create, uploadsessions_parts_upload, uploadsessions_finish, and the single-call attachments_upload alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It gives explicit when-to-use guidance by describing the full upload pipeline and positioning this tool as the final step after finishing upload sessions. It also names the alternative for a single small file: attachments_upload runs the whole pipeline in one call.

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