Skip to main content
Glama
Anythink-MCP

Anythink-MCP

Official

Roles: list

roles_list
Read-only

Lists a project's roles with ID, name, description, active status, and API access. Use it to inspect role assignments before checking permissions with the permissions tool.

Instructions

List all roles. Lists the project's roles with id, name, description, whether each is active and whether it has API access (without it, the role's entity permissions never apply and its users get 403 on data calls). Access works through roles: each user holds one role, and a role grants actions (read, create, update, delete) per entity. Use roles_permissions_list to see what one role grants.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "roles_list"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.27

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds substantive domain context beyond that: the `active` and API-access flags, and the consequence that without API access entity permissions never apply and users receive 403 on data calls. It does not discuss result ordering or size for large role sets.

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

Conciseness4/5

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

Front-loaded with the action sentence, followed by return fields and the one non-obvious semantic (API access / 403). Slightly redundant between "List all roles" and "Lists the project's roles", and the parenthetical is dense, but every sentence carries information.

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?

With no output schema, the description must convey what comes back — and it names the returned attributes plus the meaning of the non-obvious flag. For a zero-parameter read tool, nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

The tool takes no parameters, so the baseline is 4. The description correctly implies an unfiltered project-wide listing, which is useful framing but nothing more can be said about parameters.

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+resource ("List all roles") and immediately specifies scope ("the project's roles") and the fields returned (id, name, description, active, API access). An agent can distinguish this from roles_permissions_list without opening any schema.

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?

Explicitly routes to `roles_permissions_list` for the related need of seeing what a role grants, and explains the role→permission model that motivates listing. It does not state when listing roles is unnecessary (e.g., when you already have a role id), so it falls short of full when/when-not 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