Skip to main content
Glama

List available user roles

lw_user_roles
Read-onlyIdempotent

Lists account-wide role names assignable to users and API tokens so you can select valid roles for access management.

Instructions

List the role names the account can assign to users and API tokens (bleed Account/User/roles). Portal roles are account-wide: Owner, Secondary Owner, Purchaser, Technician (exact API names may differ). There is no per-domain or per-asset scoping.

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

Input Schema

NameRequiredDescriptionDefault
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

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?

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still adds real value beyond them: roles are account-wide, there is no per-domain or per-asset scoping, and the returned API names may differ from the human-readable role labels — a caveat that prevents downstream mismatches.

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?

Three short sentences, front-loaded with the core action and then the scoping caveats; nothing is redundant. The parenthetical '(bleed Account/User/roles)' is internal jargon that adds little for an agent and slightly interrupts the flow.

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?

With an output schema present, the description needn't document return values, and annotations cover the safety profile, so the remaining burden is scope and naming caveats — both supplied. Only the lack of explicit routing against sibling list tools leaves a small gap.

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 description coverage is 100% for the single optional 'context' parameter, so the schema already carries the semantics and the baseline of 3 applies. The description adds nothing about context selection, though it also has no undocumented parameters to compensate for.

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 description gives a specific verb and resource ('List the role names the account can assign to users and API tokens'), making clear this returns a role catalog rather than user records, which separates it from siblings like lw_user_list and lw_user_details. It even notes the underlying endpoint, so the agent knows exactly what dataset is being read.

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?

Usage is only implied: an agent can infer this is the lookup to call before assigning a role, but the description never states when to use it instead of the user-oriented siblings, nor any prerequisites. The scope caveat ('account-wide', 'no per-domain or per-asset scoping') helps rule out misuse but is not framed as when-to-use guidance.

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

Deploy Server

Other Tools