Skip to main content
Glama

Manage API Keys

apikey_manage
Destructive

Create, update, assign or remove roles, and delete Unraid API keys with explicit confirmation; the key value is shown once at creation.

Instructions

⚠ Credential management: create, update, add_role, remove_role, or delete Unraid API keys. This is the model managing the very credentials that control server access — the key VALUE is disclosed exactly once, at creation. Deleting the key this MCP server uses locks it out. Requires confirm: true AND acknowledge_risk: true. Use apikey_list (read-only) for ids and to inspect keys.

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": {
      "action": "<action>"
    },
    "name": "apikey_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoKey id from apikey_list. Required for `update`, `add_role` and `remove_role`.
idsNoIds of the keys to delete, from apikey_list. Required for `delete`; unused otherwise.
nameNoKey name. Required for `create`; optional new name for `update`.
rolesNoADMIN = full access, VIEWER = read-only, GUEST = own profile only, CONNECT = Unraid Connect internal. Exactly one for add_role/remove_role.
actionYes`create` a key, `update` whichever of name/description/roles are given, `add_role`/`remove_role` one role on a key, or `delete` keys.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
descriptionNoFree-text note stored with the key; used by `create` and `update`.
acknowledge_riskNoSet `true` only after the user accepts changing the credentials that control server access; needed for every action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts changing the credentials that control server access; needed for every action."
    • addedInput schema / properties / action / description
      Added value: +"`create` a key, `update` whichever of name/description/roles are given, `add_role`/`remove_role` one role on a key, or `delete` keys."
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / description / description
      Added value: +"Free-text note stored with the key; used by `create` and `update`."
    • addedInput schema / properties / id / description
      Added value: +"Key id from apikey_list. Required for `update`, `add_role` and `remove_role`."
    • addedInput schema / properties / ids / description
      Added value: +"Ids of the keys to delete, from apikey_list. Required for `delete`; unused otherwise."
    • addedInput schema / properties / name / description
      Added value: +"Key name. Required for `create`; optional new name for `update`."
    • addedInput schema / properties / roles / description
      Added value: +"ADMIN = full access, VIEWER = read-only, GUEST = own profile only, CONNECT = Unraid Connect internal. Exactly one for add_role/remove_role."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description adds genuinely new behavioral facts: the key VALUE is disclosed exactly once at creation and never again, and deleting the server's own key locks the integration out. Those are non-obvious, high-consequence traits an agent cannot derive from the annotations or schema.

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?

Three sentences, front-loaded with the credential-management warning, then the irreversible consequences, then the sibling routing. No filler, and the most dangerous information appears first.

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 an 8-parameter destructive mutation tool with no output schema, the description covers the safety-critical surface well: sole disclosure of the key value, self-lockout risk, and the two required confirmations. Minor gaps remain — update semantics are deferred entirely to the schema's action description, and nothing is said about name collisions or what is returned on create versus delete.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter including the role enum values and the confirm/acknowledge_risk gates is already documented in structured form. The description repeats the confirmation requirement and points at apikey_list as the source of ids, but adds no syntax, format, or conditional-dependency detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the resource (Unraid API keys) and enumerates the exact operations (create, update, add_role, remove_role, delete), so an agent knows precisely what the tool does. It explicitly separates itself from the read-only sibling apikey_list, which handles inspection and id lookup.

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

Usage Guidelines5/5

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

States the routing rule plainly: use apikey_list (read-only) for ids and inspection, use this tool for changes. It also names the preconditions for invocation (confirm: true AND acknowledge_risk: true) and calls out the self-lockout scenario where deleting the key the MCP server itself uses severs access.

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