Skip to main content
Glama

list_roles

List role definitions for a workspace or project, filter by namespace (workspace/project), and paginate results to manage permissions.

Instructions

List role definitions in the workspace.

namespace="workspace" → Owner/Admin/Member/Guest; "project" → project-role defs shared across all projects (Admin/Contributor/Commenter/Guest); omit for both. slug is stable but NOT globally unique (admin/guest exist in both namespaces) — key by (namespace, slug).

Args: namespace: "workspace" or "project"; omit for both. per_page: Results per page (server default 20). cursor: Prior response's next_cursor.

Returns: Paginated envelope: results (name, slug, namespace) + pagination fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNo
per_pageNo
namespaceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
resultsYes
grouped_byNo
extra_statsNo
next_cursorYes
prev_cursorYes
total_countYes
total_pagesYes
total_resultsYes
sub_grouped_byNo
next_page_resultsYes
prev_page_resultsYes
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It discloses the paginated envelope, the caveat that slug is stable but not globally unique, and the recommendation to key by (namespace, slug). It also states the return fields. This is thorough and transparent.

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 efficiently structured with a lead sentence, a caveat about slug uniqueness, and clearly labeled Args and Returns sections. Every sentence contributes valuable information and there is no filler. It is front-loaded with the purpose.

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

Completeness5/5

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

The tool has optional parameters, no annotations, and an output schema. The description thoroughly covers all parameters, return envelope, pagination behavior, and the namespace semantics, making it complete for an agent to invoke correctly without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains all three parameters in detail: namespace enum values, per_page default of 20, and cursor as the prior response's next_cursor. This adds meaning well beyond the bare schema.

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 opens with a clear verb and resource: 'List role definitions in the workspace.' It further clarifies the scope by distinguishing workspace vs. project roles, which differentiates it from the sibling retrieve_role. The purpose is unambiguous and specific.

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

Usage Guidelines4/5

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

The description gives explicit context for when to pass namespace values, including that omitting returns both. It explains the meaning of workspace and project roles, helping the agent decide which invocation is appropriate. However, it does not explicitly name an alternative tool or state when not to use this tool, so it lacks an explicit exclusion.

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/leigangzhang/plane-mcp-server-adapter'

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