Skip to main content
Glama

skein_user

Instance-wide user accounts. ADMIN ONLY — every action needs an API key with the admin right, which only an instance admin's key carries; any other key gets insufficient_scope (required: admin) before any database access. action="update" covers both the patch (name / role) and the deactivate / reactivate flip: deactivating cascades into API key revocation in the same transaction and is reversible with deactivated=false. An existing user's password, the instance admin role and an admin's deactivation or reactivation are changed only in the web UI (forbidden). action="space_add" makes the user a member of a space at once (no invitation, no consent). Read-only actions: list.

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": "skein_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name (free-form, trimmed). Required for create; on update, omit to leave it unchanged.
roleNoRole of the account. Required for create; on update, omit to leave it unchanged. `admin` is accepted only as the unchanged role of an existing admin: the instance admin role is never created, assigned or removed here — only in the web UI (`forbidden`); a concurrent change after three attempts returns `concurrent_change` (retry).
emailNoUser email address. Must match a basic email regex; uniqueness is enforced on lower(email). Required for create.
limitNoOnly read by list: maximum rows to return, 1..100. Default 50.
spaceNoOnly read by space_add: short id of the space (skein_whoami lists the spaces).
actionYesWhat to do: - "list" → users of the instance, cursor-paginated, optionally filtered by `search`. - "create" → a new account; the user can sign in immediately with the supplied password. - "update" → patch name / role, or flip `deactivated`. - "space_add" → add `userId` to the space `space` at once.
cursorNoOnly read by list: opaque cursor token from a prior response's nextCursor.
searchNoOnly read by list: case-insensitive substring filter on email, username and name.
userIdNoUUID of the user to write to, as returned by list or create. Required for update and space_add.
archivedNoOnly read by list: list deactivated users instead of active ones. Default false.
passwordNoInitial password, at least 12 characters and at most 72 bytes once UTF-8 encoded. Required for create. Not accepted by update: an existing user's password is changed only in the web UI (`forbidden`). The user should rotate the initial password on first sign-in.
usernameNoDesired username (lowercase, 3..30 chars, [a-z0-9][a-z0-9_-]*). Only read by create; derived from the email local-part when omitted.
deactivatedNoOnly read by update: true → soft-deactivate (cascades into API key revocation), false → reactivate (does not un-revoke the previous keys). When set, name/role/password are ignored. An instance admin is neither deactivated nor reactivated here — only in the web UI (`forbidden`); a concurrent change after three attempts returns `concurrent_change` (retry).
is_externalNoOnly read by create: make the account an EXTERNAL collaborator. External users are visibility-scoped to their own projects and are permanently capped at role='user' — combining is_external=true with role='admin' is rejected (external_cannot_be_admin). Defaults to false (internal user). Set only at create time; there is no conversion path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / password / description
      Previous value: -"Initial password, at least 8 characters. Required for create. Not accepted by update: an existing user's password is changed only in the web UI (`forbidden`). The user should rotate the initial password on first sign-in."New value: +"Initial password, at least 12 characters and at most 72 bytes once UTF-8 encoded. Required for create. Not accepted by update: an existing user's password is changed only in the web UI (`forbidden`). The user should rotate the initial password on first sign-in."
  2. Changed4 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"What to do:\n  - \"list\" → users of the instance, cursor-paginated, optionally filtered by `search`.\n  - \"create\" → a new account; the user can sign in immediately with the supplied password.\n  - \"update\" → patch name / role / password, or flip `deactivated`.\n  - \"space_add\" → add `userId` to the space `space` at once."New value: +"What to do:\n  - \"list\" → users of the instance, cursor-paginated, optionally filtered by `search`.\n  - \"create\" → a new account; the user can sign in immediately with the supplied password.\n  - \"update\" → patch name / role, or flip `deactivated`.\n  - \"space_add\" → add `userId` to the space `space` at once."
    • changedInput schema / properties / deactivated / description
      Previous value: -"Only read by update: true → soft-deactivate (cascades into API key revocation), false → reactivate (does not un-revoke the previous keys). When set, name/role/password are ignored. Deactivating the last active admin returns `last_admin_cannot_demote`; a concurrent change after three attempts returns `concurrent_change` (retry)."New value: +"Only read by update: true → soft-deactivate (cascades into API key revocation), false → reactivate (does not un-revoke the previous keys). When set, name/role/password are ignored. An instance admin is neither deactivated nor reactivated here — only in the web UI (`forbidden`); a concurrent change after three attempts returns `concurrent_change` (retry)."
    • changedInput schema / properties / password / description
      Previous value: -"Password, at least 8 characters. Required for create; on update, set it to reset the user's password. The user should rotate an admin-supplied password via POST /api/v1/me/password on first sign-in."New value: +"Initial password, at least 8 characters. Required for create. Not accepted by update: an existing user's password is changed only in the web UI (`forbidden`). The user should rotate the initial password on first sign-in."
    • changedInput schema / properties / role / description
      Previous value: -"Role of the account. Required for create; on update, omit to leave it unchanged. Demoting the last active admin returns `last_admin_cannot_demote`; a concurrent change after three attempts returns `concurrent_change` (retry)."New value: +"Role of the account. Required for create; on update, omit to leave it unchanged. `admin` is accepted only as the unchanged role of an existing admin: the instance admin role is never created, assigned or removed here — only in the web UI (`forbidden`); a concurrent change after three attempts returns `concurrent_change` (retry)."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing error codes (insufficient_scope, forbidden, concurrent_change, external_cannot_be_admin), transactional cascading (deactivation revokes API keys in the same transaction), and the limits of reversibility (reactivation does not un-revoke prior keys). It also flags the consent-free nature of space_add. Although destructiveHint=false, the described operation is a reversible soft-deactivate, so this reads as consistent rather than contradictory.

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?

Front-loads the scope and the admin gate before the action details, and every clause carries information. It is a single dense block with no formatting, which makes the error-code and forbidden-case details slightly harder to scan than they could be.

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 14-parameter, four-action mutation tool with no output schema, the description covers auth, per-action behavior, side effects, and failure modes well. The only mild gap is a compact statement of what create/update return and how pagination cursors surface, which the schema hints at but the description does not summarize.

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 100%, so the baseline is 3 and the schema already documents every parameter. The description still adds meaning the schema does not spell out as compactly — that update merges patch and deactivate into one action, and that space_add grants membership immediately with no invitation or consent step.

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?

Opens with a specific resource and scope ('Instance-wide user accounts') and enumerates the four actions (list, create, update, space_add) it performs. Nothing else in the sibling list manages users, so an agent can route here without ambiguity.

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 precondition explicitly (admin right on the API key, otherwise insufficient_scope before any DB access) and spells out per-action semantics, including that update covers both patch and deactivate flip. It also gives negative guidance — password, instance-admin role, and admin de/reactivation are only possible in the web UI and return forbidden — and points to `skein_whoami` for obtaining a space id.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.