Skip to main content
Glama

Get a user with roles and groups

user_get
Read-onlyIdempotent

Retrieve a single user by sys_id or user_name, including active direct and inherited roles with sources plus group memberships (up to 100 each). Password fields are excluded.

Instructions

Get one user by sys_id or user_name with their active roles (direct or inherited, and where from) and group memberships, up to 100 of each. Password fields are never returned.

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": {
      "id": "<id>"
    },
    "name": "user_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe user: sys_id (32 hex characters) or user_name.
instanceNoInstance alias from the config (see instance_list). Defaults to the default instance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description still earns credit by disclosing behavior the annotations cannot: roles include inherited ones with their source, and results are capped at 100 roles and 100 groups. It also states that password fields are never returned, which is a meaningful data-exposure guarantee.

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?

Two sentences, no filler, and the lookup key and returned contents are front-loaded before the security note. Every clause carries information an agent would otherwise have to guess.

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 no output schema, the description does the heavy lifting by specifying exactly what comes back and the per-collection cap. The remaining gap is minor: it does not say what happens when no user matches the identifier or how the 'where from' role provenance is shaped.

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%, with the 'id' parameter already documenting both accepted forms (32-hex sys_id or user_name) and 'instance' pointing at instance_list. The description restates the identifier forms without adding format, validation, or fallback detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('Get one user') plus the exact lookup keys (sys_id or user_name), and enumerates the payload (active roles with provenance, group memberships). The singular 'one user' framing cleanly separates it from a search-style sibling without needing to name it.

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: the 'one user by sys_id or user_name' phrasing signals a direct-lookup tool, so an agent can infer this is for a known identifier rather than discovery. There is no explicit when-to-use or when-not-to-use statement and no named alternative for lookup-by-attribute.

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