Skip to main content
Glama
gokapi-mcp

gokapi-mcp

by arr-mcps

Gokapi Chunks

gokapi_chunks

Perform chunked upload operations for Gokapi shares and file requests, including adding, completing, reserving, and unreserving file chunks.

Instructions

gokapi chunks operations on Gokapi. Pass operation and an arguments dict matching that operation's parameters.

  • gokapi_chunk_add(file_b64, uuid, filesize, offset) - Upload one chunk (POST /api/chunk/add, multipart). uuid (>=10 chars) must be identical for all chunks of one file; offset is the chunk's byte offset. The file chunk is a base64 string.

  • gokapi_chunk_complete(uuid, filename, filesize, contenttype=None, allowed_downloads=None, expiry_days=None, password=None, nonblocking=None) - Finalise uploaded chunks into a file (POST /api/chunk/complete). allowed_downloads defaults to 1 (0 = unlimited), expiry_days defaults to 14 (0 = unlimited). nonblocking=true returns before processing finishes.

  • gokapi_urequest_chunk_add(file_b64, file_request_id, uuid, filesize, offset) - Upload one chunk for a file request (POST /api/uploadrequest/chunk/add, multipart). The file chunk is a base64 string.

  • gokapi_urequest_chunk_complete(uuid, file_request_id, filename, filesize, contenttype=None, nonblocking=None) - Finalise uploaded chunks for a file request (POST /api/uploadrequest/chunk/complete).

  • gokapi_urequest_chunk_reserve(id) - Reserve a UUID for a new file-request upload (POST /api/uploadrequest/chunk/reserve).

  • gokapi_urequest_chunk_unreserve(id, uuid) - Free a reserved UUID after a cancelled upload (POST /api/uploadrequest/chunk/unreserve).

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": {
      "operation": "<operation>"
    },
    "name": "gokapi_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses multipart POST endpoints, the uuid >=10 char constraint, byte-offset semantics, the allowed_downloads default of 1 (0 = unlimited), expiry_days default of 14 (0 = unlimited), and that nonblocking=true returns before processing finishes. It omits auth requirements and what happens to chunks after completion or on failure, which keeps it 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The dispatch contract is front-loaded in the first sentence, then a clean one-line-per-operation list, which is the right structure for a six-operation dispatcher. Minor waste: "The file chunk is a base64 string" is repeated verbatim for both add operations, and endpoint paths add length without much decision value.

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?

An output schema exists, so return values need not be explained, and for a six-operation dispatcher the description covers every operation's parameters, defaults, and async behaviour. The main missing piece is the cross-operation workflow (reserve → add → complete) and auth/permission expectations, which matter for a mutating upload tool with no annotations.

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 0% — the schema only exposes an opaque `operation` enum and a free-form `arguments` object — so the description must supply all parameter meaning, and it largely does per operation: uuid identity constraint, offset, base64 file_b64, defaults for allowed_downloads and expiry_days, nonblocking semantics. Gaps remain for `id` in reserve/unreserve (presumably a file_request_id but never stated), `filesize`, `filename`, and `contenttype`, which are listed without explanation.

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?

The opening sentence is near-tautological ("gokapi chunks operations on Gokapi"), but the six enumerated operations with their HTTP endpoints make the resource and action set unambiguous: chunked upload and finalisation for files and file requests. It does not distinguish itself from siblings like gokapi_files, though the operation names are specific enough that an agent knows this is the chunked-upload surface.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: "Finalise uploaded chunks into a file" and "Reserve a UUID for a new file-request upload" hint at the add-then-complete and reserve-then-add flows, but the description never says ordering or prerequisites explicitly (e.g. that reserve must precede urequest_chunk_add, or that uuid must match across chunks — the latter is stated only for chunk_add). No when-not-to-use or alternative guidance against the other Gokapi tools.

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