Skip to main content
Glama
gokapi-mcp

gokapi-mcp

by arr-mcps

Gokapi Users

gokapi_users

Manage Gokapi users by creating accounts, deleting users, changing ranks, granting or revoking permissions, and resetting passwords through a single operation-based tool.

Instructions

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

  • gokapi_user_changerank(userid, new_rank) - Change a user's rank (PUT /api/user/changeRank). new_rank is admin or user.

  • gokapi_user_create(username) - Create a new user (POST /api/user/create). Returns the new user including its generated password.

  • gokapi_user_delete(userid, delete_files=None) - Delete a user (DELETE /api/user/delete). Set delete_files=true to also delete all their uploads.

  • gokapi_user_modify(userid, userpermission, permission_modifier) - Grant/revoke one user permission (PUT /api/user/modify). userpermission is one of PERM_REPLACE, PERM_LIST, PERM_EDIT, PERM_REPLACE_OTHER, PERM_DELETE, PERM_LOGS, PERM_API, PERM_USERS, PERM_GUEST_UPLOAD; permission_modifier is GRANT or REVOKE.

  • gokapi_user_resetpassword(userid, generate_new_password=None) - Reset a user's password (PUT /api/user/resetPassword). Returns the new password.

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

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With zero annotations, the description carries the full behavioral burden. It does add real value: it discloses that create returns a generated password, that resetpassword returns the new password, and that delete_files=true also destroys all the user's uploads. It omits permission/auth requirements, what happens to uploads when delete_files is left default, and irreversibility of rank/permission changes.

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 front-loaded instruction about passing `operation` and `arguments` is followed by a tight bulleted list where each line gives the signature, endpoint, and key semantics. Almost every word earns its place, with only slight redundancy in the 'gokapi users operations on Gokapi' preamble.

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-shape explanation is not required, yet the description still flags which operations return credentials. All five enum operations have documented arguments and notable side effects. Missing pieces are auth/permission requirements and error behavior, which keep it short of fully complete for an admin mutation tool.

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 must compensate, and it largely does: it documents userid, the allowed new_rank values (admin/user), the full PERM_* enum list, the GRANT/REVOKE modifier, and the optional delete_files and generate_new_password flags per operation. Remaining gaps are minor, such as the expected type/format of userid and the type of the boolean flags.

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 specific verb and resource for each of the five sub-operations (change rank, create, delete, modify permission, reset password) and maps each to an HTTP endpoint. An agent can tell these are user-administration actions distinct from siblings like gokapi_files or gokapi_logs. The opening line ('gokapi users operations on Gokapi') is near-tautological, but the enumerated operation list carries the real specificity.

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 list of operations implies when each sub-operation is appropriate, and the sibling names suggest a user-admin scope versus file/download scope. However, there is no explicit guidance on when to use this tool versus gokapi_auth (e.g. for login/account actions) and no exclusions or prerequisite notes. Usage is inferable but not taught.

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