Skip to main content
Glama

set_user_password

DestructiveIdempotent

Set the login password of a member of THIS tenant (admins only; ticket 1a6af89c). Identify the person by user_id or email. Pass the password as password_ref = a 1Password reference op://// or a Bitwarden reference bws:// (PREFERRED: resolved server-side from the tenant's 1Password connection, so the value never appears in your context or any log) or, only if there is no 1Password entry, as password (plain text). The value is never returned or logged. Only works if you administer EVERY tenant the person belongs to (the login is platform-wide). Agents need an explicit permission for exactly this tool. By default all sessions of the person are ended (revoke_sessions=false keeps them) and the person gets a notice email without the password (notify=false skips it). Recorded in audit_log (who, for whom, when — no value).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_user_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoEmail address
notifyNoSend the person a notice email without the password (default true)
user_idNoID of the user
passwordNoPlain text — only if there is no 1Password entry.
password_refNoop://<vault>/<item>/<field> or bws://<secret-id> (preferred)
revoke_sessionsNoEnd all sessions of the person (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / password_ref / description
      Previous value: -"op://<vault>/<item>/<field> (preferred)"New value: +"op://<vault>/<item>/<field> or bws://<secret-id> (preferred)"
  2. Changed4 schema fields changed
    • addedInput schema / properties / email / description
      Added value: +"Email address"
    • addedInput schema / properties / notify / description
      Added value: +"Send the person a notice email without the password (default true)"
    • addedInput schema / properties / revoke_sessions / description
      Added value: +"End all sessions of the person (default true)"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them: sessions are ended by default, a notice email is sent without the password, the action is written to audit_log with no value, and the secret is never returned or logged. These side effects and defaults are exactly what an agent needs before performing an irreversible credential change.

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 core action and permission gate are front-loaded in the first two sentences, and every later sentence carries operational value. It is a dense single paragraph with several parentheticals, which makes it harder to scan than a short bulleted layout would be, but no sentence is filler.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and a destructive credential mutation, the description covers everything an agent needs: identity keys, secret source preference, permission gate, default side effects with their opt-out flags, and audit/non-logging guarantees. The only residual ambiguity is that no parameter is marked required while the description implies an identifier is needed.

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% and the schema already documents all six parameters and their defaults, so the baseline is 3. The description adds real meaning on top: it ranks password_ref as PREFERRED with the security rationale (resolved server-side, never entering context or logs), names the accepted reference schemes, and constrains password to the no-1Password fallback case. It slightly underspecifies the requirement that at least one of user_id/email be supplied, since the schema marks nothing required.

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?

The first sentence gives a specific verb and resource ('Set the login password of a member of THIS tenant'), scoping it to the current tenant and declaring the admin-only restriction. No sibling tool in the list sets passwords, and the description makes that uniqueness unambiguous.

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?

It states precise prerequisites: admin rights, an explicit agent permission for exactly this tool, and the non-obvious constraint that you must administer EVERY tenant the person belongs to because the login is platform-wide. It also explains when to use password_ref vs password ('only if there is no 1Password entry'), which is an explicit selection rule rather than an implied one.

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.