Skip to main content
Glama

Finish Wiki upload session

wiki_uploadsessions_finish

Close an upload session after its last part — step 3 of the upload pipeline.

Instructions

Close an upload session after its last part — step 3 of the upload pipeline.

Only a finished session can be attached to a page (attachments_attach). Returns the session with its final status.

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": {
      "session_id": "<session_id>"
    },
    "name": "wiki_uploadsessions_finish"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
session_idYesUUID4 of the upload session.

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/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, open-world behavior; beyond that the description adds the sequencing rule (must follow the final part) and the enabling effect on attachments_attach, plus that the final status is returned. It omits failure modes — e.g. what happens if parts are missing or the session is already finished — which for a non-idempotent mutation is a remaining gap.

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?

Two sentences, front-loaded with the action and pipeline position, then the key dependency. Nothing is redundant with the title and no sentence is wasted.

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 two-parameter lifecycle tool with no output schema, the definition covers the pipeline position, the precondition, the returned status, and the downstream consumer. The only meaningful omission is the error/edge behavior for an already-finished or incomplete session.

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% with only two parameters (session_id UUID4, dry_run), so the schema already carries the semantics. The description adds no syntax, format, or dry_run detail beyond the structured fields, making this a baseline case.

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?

States a specific verb and resource ('Close an upload session') and situates it as 'step 3 of the upload pipeline', which differentiates it from the parts-upload and abort siblings by position in the flow. It stops short of naming the neighboring lifecycle tools (abort, abort_all) explicitly, so the contrast is inferred from the pipeline framing.

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 concrete precondition — it must be called 'after its last part' — and a downstream condition: 'Only a finished session can be attached to a page (attachments_attach)', naming the sibling that consumes the result. It does not say what to do when the upload is abandoned (presumably use wiki_uploadsessions_abort), so the negative case is left implicit.

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