Skip to main content
Glama

Upload Wiki file part

wiki_uploadsessions_parts_upload
Idempotent

Upload one file part to an open session — step 2 of the upload pipeline.

Instructions

Upload one file part to an open session — step 2 of the upload pipeline.

The base64 data is decoded and sent as raw application/octet-stream bytes. Parts may be 5-16 MB except the last; a small file fits in a single part_number=1 call. Returns the session (poll status via uploadsessions_get).

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>",
      "part_number": "<part_number>",
      "data": "<data>"
    },
    "name": "wiki_uploadsessions_parts_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThis part's bytes, base64-encoded.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
session_idYesUUID4 of the upload session.
part_numberYes1-based part index (1 for the first part, +1 for each next).

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. Addedv0.122.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (non-read-only, idempotent, non-destructive, open-world), and the description adds real behavioral context beyond them: base64 payload is decoded to raw application/octet-stream, per-part size limits with the last-part exception, and that the call returns the session to be polled via uploadsessions_get. These are facts an agent cannot get from the annotations or schema alone.

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?

Four short sentences, front-loaded with the identity and pipeline position, followed by encoding behavior, size rules, and the return/polling contract. No sentence restates the name or wastes space.

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?

Without an output schema, the description compensates by stating what is returned (the session) and how to check progress. Size limits and encoding are covered. Minor gaps remain: whether parts must be uploaded sequentially or may be parallel, and what happens on a failed/retried part, are not addressed for a multi-step, non-idempotent-looking write.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an increment by explaining how part_number maps to file size strategy (single call for small files, 5-16 MB chunks otherwise) and by clarifying the encoding transformation applied to data. It doesn't add detail on dry_run, though the schema already documents it well.

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 a specific verb and resource — 'Upload one file part to an open session' — and situates it precisely as 'step 2 of the upload pipeline', which implicitly distinguishes it from session creation, finishing, and standalone attachment uploads. An agent can identify the operation and its position in the workflow without opening another schema.

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 concrete operational guidance: parts are 5-16 MB except the last, and 'a small file fits in a single part_number=1 call', which tells the agent how to split work. It also routes follow-up to uploadsessions_get for polling status. It stops short of an explicit ordering rule (create → upload parts → finish) or naming finish/abort as alternatives, so the when-not guidance is inferred rather than stated.

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