Skip to main content
Glama

List Roles

list_roles
Read-onlyIdempotent

List every access role in the Bridge app with its privileges. Each role includes: id, key, name, description, whether it is the default role for new users, and the privilege KEYS it grants; each privilege's description appears once, in the top-level privileges map (key -> description). The roles a new app starts with (Owner, Admin, Member) are a default suggestion the developer can rename, re-scope or replace: read what each role grants here rather than assuming it from its name. Use this before writing a flag rule that targets a privilege or role, when checking which role to assign a user, or when verifying a privilege key exists. For login-method configuration use get_auth_config; for the whole app object use get_app. What a role can do is only the app's default setup until you have read it here. Control access with a flag rule on a privilege (preferred) or on the role key, never with a hard-coded role check in app code. A privilege rule matches the whole key: privileges contains "REPORTS_VIEW" does not match REPORTS_VIEW_ALL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoId of the Bridge app to act on for this call (see list_apps). Omit to use the current app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the safe read-only/idempotent profile, but the description adds real behavioral context beyond them: default roles are merely a suggestion the developer can rename/re-scope, names should not be trusted, and rule matching is whole-key (REPORTS_VIEW does not match REPORTS_VIEW_ALL). It also warns against hard-coded role checks. This is meaningful disclosure; it stops short of full richness (e.g. pagination/ordering) but is well above the annotation baseline.

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 return shape, then usage, then caveats. It is fairly long and dense, but nearly every sentence carries distinct value (return fields, usage triggers, rule-matching gotcha). Could be trimmed slightly without losing content.

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 fully carries the burden of describing return values, enumerating each role field and explaining the top-level privileges map. It also covers the absence of assumptions and the access-control model, so an agent has everything needed to call 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% and the single 'app' parameter is fully documented in the schema, so the baseline is 3. The description adds no syntax or format detail for the parameter beyond what the schema already provides.

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 every access role in the Bridge app with its privileges') and distinguishes itself from siblings by naming get_role-adjacent alternatives such as get_auth_config and get_app. An agent can tell it apart from list_privileges or get_role without opening a schema.

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

Usage Guidelines5/5

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

Explicitly enumerates when to use it (before writing a flag rule targeting a privilege/role, when choosing which role to assign a user, when verifying a privilege key exists) and names alternative tools for adjacent needs (get_auth_config, get_app). Both the trigger conditions and the exclusions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.