Skip to main content
Glama
gokapi-mcp

gokapi-mcp

by arr-mcps

Gokapi Download

gokapi_download

Download files or multiple files as a ZIP from Gokapi, returning base64 content by default or a one-time 30-second URL when requested.

Instructions

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

  • gokapi_download_file(id, increase_counter=None, presign_url=None) - Download a file (GET /api/files/download/{id}). Returns base64-encoded bytes. Set presign_url=true to get a one-time 30s download URL (returned as JSON) instead of the file content.

  • gokapi_download_zip(ids, filename=None, increase_counter=None, presign_url=None, is_file_request_id=None) - Download files as a ZIP (GET /api/files/downloadzip). ids is a comma- separated list of file IDs. Returns base64-encoded bytes unless presign_url=true (one-time 30s URL as JSON). Set is_file_request_id=true to pass a file request ID and zip all its files.

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

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does add real value: it states that results are base64-encoded bytes and that presign_url=true returns a one-time 30-second URL as JSON instead of content. It omits auth requirements, size/rate limits, and what happens to the download counter — gaps that matter for a download tool with zero annotation coverage.

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 preamble is one sentence and the two operations are cleanly bulleted with signature-then-behavior ordering. The preamble is slightly redundant with the schema's `operation` enum, but nothing is wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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-shape explanation is not strictly required, yet the description helpfully covers the presign vs. bytes branch. Against zero annotations and 0% schema coverage, though, it should also address auth requirements and the unexplained `increase_counter` parameter before it can be called complete.

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 description coverage is 0%, so the description is the only source of parameter meaning, and it delivers: it explains id, ids as a comma-separated list, filename, presign_url's URL-vs-bytes tradeoff, and is_file_request_id's zipping behavior. The only real gap is `increase_counter`, whose purpose and accepted values are never explained.

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 description names a concrete verb and resource and enumerates both operations with their HTTP endpoints (GET /api/files/download/{id} and /api/files/downloadzip), so an agent can tell exactly what is retrievable. It does not distinguish this from the sibling gokapi_files tool, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is a generic instruction to pass `operation` and `arguments`, plus per-operation signatures, but no guidance on when to choose download vs. gokapi_files or gokapi_requests, no prerequisite/auth notes, and no exclusions. The agent must infer selection purely from operation names.

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