Skip to main content
Glama
gokapi-mcp

gokapi-mcp

by arr-mcps

Gokapi Files

gokapi_files

Manage Gokapi file shares by uploading, listing, retrieving, modifying, duplicating, replacing, deleting, restoring, and changing ownership of stored files via a single operation-based interface.

Instructions

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

  • gokapi_files_add(file_b64, filename, allowed_downloads=None, expiry_days=None, password=None) - Upload a file without chunking (POST /api/files/add, multipart). The file is a base64 string. allowed_downloads defaults to 1 (0 = unlimited), expiry_days defaults to 14 (0 = unlimited).

  • gokapi_files_change_owner(id, new_owner) - Change a file's owner (PUT /api/files/changeOwner, admin only). new_owner is the target user ID.

  • gokapi_files_delete(id, delay=None) - Delete a file (DELETE /api/files/delete). delay waits N seconds before deleting so the file can still be restored.

  • gokapi_files_duplicate(id, allowed_downloads=None, expiry_days=None, password=None, original_password=None, filename=None) - Duplicate a file (POST /api/files/duplicate). Returns the new file object. Set original_password=true to keep the source password.

  • gokapi_files_get(id) - Get file metadata by ID (GET /api/files/list/{id}).

  • gokapi_files_list(show_file_requests=None) - List all files (GET /api/files/list). Set show_file_requests to include files uploaded through file requests.

  • gokapi_files_modify(id, allowed_downloads=None, expiry_timestamp=None, password=None, original_password=None) - Change parameters of an uploaded file (PUT /api/files/modify). allowed_downloads 0 = unlimited; expiry_timestamp 0 (unix) = no expiry; omit password to leave it unchanged, pass empty string to remove it.

  • gokapi_files_replace(id, id_new_content, delete_new_file=None) - Replace a file's content with another uploaded file (PUT /api/files/replace). Set delete_new_file=true to delete the source file afterwards.

  • gokapi_files_restore(id) - Restore a file pending deletion (POST /api/files/restore).

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_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the admin requirement for change_owner, the delayed-deletion/restore window on delete, that duplicate returns the new file object, and the omit-vs-empty-string password semantics on modify. It still omits general auth requirements for the non-admin operations, whether deletion is irreversible after the delay, and any rate-limit or confirmation behavior.

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 calling convention is front-loaded, then one bullet per operation with the signature on the left and semantics on the right — easy to scan and no filler bullets. The phrasing is dense but every clause carries information; only the redundant opening sentence with the tool name 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?

Given an output schema exists (return values need no explanation) and an annotation-free nine-operation surface, the definition covers each operation's parameters and the most consequential side effects. The remaining gaps are cross-cutting auth/permission notes for operations other than change_owner and what happens to a file after the delete delay elapses.

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

Parameters5/5

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

Schema description coverage is 0% and the `arguments` object is free-form, so the description is the only parameter documentation — and it delivers: per-operation parameter lists plus defaults and edge cases (allowed_downloads defaults to 1 with 0 = unlimited, expiry_days defaults to 14 with 0 = unlimited, expiry_timestamp 0 = no expiry, original_password keeps the source password, delete_new_file removes the source). An agent can construct valid arguments for every operation from this text alone.

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 phrase ('gokapi files operations on Gokapi') is near-tautological, but the nine enumerated sub-operations make the tool's scope concrete: file upload, list, get, modify, duplicate, replace, delete, restore, change owner. That enumeration implicitly separates it from siblings like gokapi_chunks and gokapi_users, though no sibling is named explicitly.

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?

It states the calling convention ('Pass `operation` and an `arguments` dict matching that operation's parameters'), which is genuine dispatch guidance. However, there is no explicit when-to-use/when-not, no routing hint such as 'use gokapi_chunks for chunked uploads' despite 'without chunking' being mentioned in passing, and no stated prerequisites besides 'admin only' on change_owner.

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