Skip to main content
Glama
gokapi-mcp

gokapi-mcp

by arr-mcps

Gokapi Auth

gokapi_auth

Manage Gokapi API keys: create new keys, delete or rename existing keys, and grant or revoke individual permissions to control access for shares, uploads, and admin tasks.

Instructions

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

  • gokapi_auth_create(friendly_name=None, basic_permissions=None) - Create a new API key (POST /api/auth/create). Returns the new key - store it immediately, it cannot be retrieved again.

  • gokapi_auth_delete(target_key) - Delete an API key (DELETE /api/auth/delete). target_key is the key's public ID or the key itself.

  • gokapi_auth_friendlyname(target_key, friendly_name) - Rename an API key (PUT /api/auth/friendlyname).

  • gokapi_auth_modify(target_key, permission, permission_modifier) - Grant/revoke one API-key permission (PUT /api/auth/modify). permission is one of PERM_VIEW, PERM_UPLOAD, PERM_DELETE, PERM_API_MOD, PERM_EDIT, PERM_REPLACE, PERM_MANAGE_USERS, PERM_MANAGE_LOGS, PERM_MANAGE_FILE_REQUESTS, PERM_DOWNLOAD; permission_modifier is GRANT or REVOKE.

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

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral load, and it does disclose key traits: create returns an unrecoverable secret, delete takes a public ID or the key itself, and modify only touches a single permission via GRANT/REVOKE. Gaps remain on required permissions to call these endpoints and whether delete is reversible.

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?

Front-loaded with the dispatch contract ('Pass `operation` and an `arguments` dict'), then a tight bullet per operation, each ending with endpoint and parameter notes. No filler sentences.

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?

For a four-way multiplexed tool with 0% schema coverage, this is nearly sufficient; an output schema exists so return shape need not be detailed. The remaining shortfall is the unspecified `basic_permissions` format and unstated auth requirements for these endpoints.

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%, so the description must compensate, and it does: it names each operation's parameters and fully enumerates the allowed `permission` and `permission_modifier` values that the schema leaves untyped. The `basic_permissions` parameter's expected shape is still undocumented.

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 states precisely what the tool is: a dispatcher for Gokapi API-key/auth operations, naming each concrete sub-operation (create/delete/friendlyname/modify) with HTTP verb and endpoint. It clearly distinguishes itself from siblings like gokapi_users or gokapi_files, though it does not explicitly say so.

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?

The enumerations imply when to use each sub-operation, and create carries a useful caveat ('store it immediately, it cannot be retrieved again'). However there is no explicit guidance on prerequisites, alternatives, or when not to use these operations (e.g., key management vs. user admin in gokapi_users).

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