Skip to main content
Glama

List users in a specific role

action1_list_role_users
Read-onlyIdempotent

Lists users assigned to a specific role by role ID, with pagination, filtering, and sorting support.

Instructions

List users in a specific role. Gets a list of users in a role specified by its ID. Perm: view_users, assign_roles, manage_roles.

Input Schema

NameRequiredDescriptionDefault
fromNoProvide the number of the first record to be returned.
limitNoSet the maximum number of items to be returned (the page size).
cursorNonext_cursor of the previous call; takes precedence over from.
filterNoProvide a case-insensitive substring to filter and narrow down returned results (i.e., if...
sortbyNoDefine the sorting order by a certain field.
role_idYesProvide a specific role ID.
verboseNoSkip per-item compactor.
auto_paginateNoWalk pages until limit or the size budget; then continue with next_cursor.
response_formatNoOutput format. Default markdown.

Output Schema

NameRequiredDescriptionDefault
noteNo
countYes
itemsYes
totalNo
has_moreNo
next_cursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / auto_paginate / description
      Previous value: -"Walk all pages."New value: +"Walk pages until limit or the size budget; then continue with next_cursor."
    • changedInput schema / properties / cursor / description
      Previous value: -"Pagination cursor."New value: +"next_cursor of the previous call; takes precedence over from."
    • addedInput schema / properties / from / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / from / minimum
      Added value: +0
    • addedInput schema / properties / limit / maximum
      Added value: +50000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / items / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.5.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuine value by naming the required permissions (view_users, assign_roles, manage_roles), but it is ambiguous whether all are needed or any one suffices, and nothing is said about result scope across organizations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The second sentence largely restates the first ('List users in a specific role' vs 'Gets a list of users in a role'), so a sentence does not fully earn its place. The permission string is compressed into an unexplained abbreviation ('Perm:'), which is terse but not front-loaded.

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

Completeness3/5

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

With an output schema present and 100% schema coverage, the description needn't explain return values or parameters. However, for a nine-parameter, open-world listing tool connected to role management siblings, the absence of any routing guidance leaves an agent to infer when this tool is the right choice.

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%, so all nine parameters (from, limit, cursor, filter, sortby, verbose, auto_paginate, response_format, role_id) are already documented in the schema. The description only restates that role_id is the role's ID, adding nothing beyond the schema; baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('List users in a specific role') and the second sentence pins down the selector ('a role specified by its ID'). It is distinguishable from action1_list_user_roles and action1_list_users by the direction of the relationship, though it never explicitly contrasts with those siblings.

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

Usage Guidelines2/5

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

No statement of when to use this versus action1_list_users, action1_list_user_roles, or action1_create_role_user/action1_delete_role_user. The only contextual hint is the permission list, which is prerequisite information rather than selection 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