Skip to main content
Glama

List roles

action1_list_roles
Read-onlyIdempotent

List available roles with pagination, filtering, sorting, and field selection to inspect permissions or support role management.

Instructions

List roles. Gets a list of available roles. Perm: 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.
fieldsNoAdd FIELDS parameter to query extended data.
filterNoProvide a case-insensitive substring to filter and narrow down returned results (i.e., if...
sortbyNoDefine the sorting order by a certain field.
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 / properties
      Added value: +{
      +  "description": {},
      +  "id": {},
      +  "name": {},
      +  "scoped_permissions": {},
      +  "self": {},
      +  "type": {},
      +  "users": {}
      +}
  2. First observedv0.5.0

TDQS

C2.8/5.0
Behavior3/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 adds one genuinely useful fact — the manage_roles permission requirement — but says nothing about scope (enterprise vs organization), result volume, or pagination behavior beyond what the schema shows.

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?

Very short, which is good, but the second sentence is pure redundancy with the first. The one non-redundant element (the permission requirement) is buried at the tail rather than 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?

An output schema exists and the input schema is fully documented, so most burden is already carried. What's missing is scope: an agent can't tell whether returned roles are enterprise-wide or organization-scoped, which matters in a toolset with clone_role, list_role_users, and delete_role siblings.

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 including from/limit/cursor/filter/sortby/auto_paginate are already documented in structured form. The description adds no parameter-level meaning, which is the correct baseline 3 here.

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

Purpose3/5

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

States a clear verb+resource (list roles), so the basic operation is unambiguous. But the second sentence only restates the first, and nothing distinguishes it from close siblings like action1_list_role_users, action1_list_permissions, or action1_get_role.

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 guidance on when to use this versus get_role, list_role_users, or list_permissions. The only contextual hint is the permission requirement, which is not usage 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