Skip to main content
Glama

list-roles

Retrieve and filter roles by status, department, or hierarchy to manage team structure and permissions.

Instructions

List all roles with optional filtering by status, department, or active status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activeNoFilter by active status (0=archived, 1=active)
department_idNoFilter by department ID
levelNoFilter by role level/hierarchy
pageNoPage number for pagination
per-pageNoNumber of items per page (max 200)
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It mentions optional filtering but doesn't disclose key behavioral traits like pagination behavior (implied by page/per-page parameters but not described), rate limits, authentication needs, or what the output looks like. This is inadequate for a tool with multiple parameters and no output schema.

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?

The description is a single, efficient sentence that front-loads the core purpose and mentions key filtering options without any wasted words. It's appropriately sized for a straightforward list tool.

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

Completeness2/5

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

Given the complexity (5 parameters, no output schema, no annotations), the description is incomplete. It doesn't explain the return format, pagination behavior, or error conditions. For a list tool with filtering and pagination, more context is needed to help an agent use it correctly.

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 the schema fully documents all 5 parameters. The description adds minimal value by mentioning filtering by status, department, or active status, but this is redundant with the schema. It doesn't provide additional context like default values or usage examples beyond what's in the schema.

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?

The description clearly states the verb ('List') and resource ('all roles'), making the purpose specific and understandable. However, it doesn't distinguish this tool from other list tools (like list-accounts, list-departments) beyond mentioning it's for roles, so it lacks explicit sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives like get-role or get-role-hierarchy. It mentions optional filtering but doesn't explain when filtering is appropriate or what other tools might be better for specific scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/asachs01/float-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server