Skip to main content
Glama

Create Wiki upload session

wiki_uploadsessions_create

Open an upload session — step 1 of the Wiki file-upload pipeline.

Instructions

Open an upload session — step 1 of the Wiki file-upload pipeline.

The returned session_id addresses the session for uploadsessions_parts_upload / uploadsessions_finish. For a single small file, attachments_upload runs the whole pipeline in one call instead.

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": {
      "body": "<body>"
    },
    "name": "wiki_uploadsessions_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes``file_name`` + total ``file_size`` in bytes (sum of every part).
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).

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?

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value beyond that: it discloses that the call's output (session_id) is the handle for subsequent calls rather than a completed upload, which reframes an otherwise confusing 'non-destructive write'. It stops short of lifecycle behavior such as session expiry or what happens to sessions that are never finished or aborted.

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?

Three short sentences, zero filler. Purpose and pipeline position are front-loaded before the alternative is offered, and the backticked sibling names make the routing unambiguous.

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 compensates by explaining that a session_id is returned and how it is used. For a pipeline-entry mutation tool this is nearly complete; the remaining gap is lifecycle detail (expiry, cleanup, whether abandoning a session costs anything).

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%, including the nested file_name/file_size body and the dry_run flag, so the schema carries parameter meaning already. The description mentions session_id but that is a return value, not an input, and adds nothing about dry_run or the file_size-is-the-sum-of-parts semantics. 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?

A precise verb+resource ('Open an upload session') plus positional context ('step 1 of the Wiki file-upload pipeline'). It names the two downstream siblings that consume the session_id (uploadsessions_parts_upload / uploadsessions_finish) and the single-call alternative, so an agent can place it in the pipeline without opening any schema.

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?

Explicitly routes the agent: use this when driving a multi-part pipeline, and use attachments_upload instead 'for a single small file'. The alternative and the condition that selects it are both stated, not inferred.

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