Skip to main content
Glama

set_role_permissions

Assign or remove permissions from a role.

Args: role_slug: Role slug identifier add_permissions: List of permission IDs to add to the role (default: []) remove_permissions: List of permission IDs to remove from the role (default: []) project_key: Project key (tenant ID). Uses global tenant_id if not provided

Returns: JSON string with role permission assignment result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
role_slugYes
project_keyNo
add_permissionsNo
remove_permissionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the core behavior (add and remove permissions), the default empty lists, and the project_key fallback, as well as the return type (JSON string). However, it does not specify side effects, error conditions, permission requirements, or whether changes are immediately persistent. Some behavioral transparency is present, but not comprehensive for a mutation tool.

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?

The description is structured with a purpose sentence, then Args and Returns sections. Every sentence adds value, and the parameter explanations are necessary because the schema provides no descriptions. It is slightly longer than strictly needed but not wastefully verbose.

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?

The description covers the main input parameters and return type, and the existence of an output schema is noted. However, it lacks information about edge cases such as what happens when permission IDs are invalid, whether the role must exist, or whether the operation is idempotent. For a mutation tool without annotations, this leaves gaps for the agent.

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%, but the description fully compensates by explaining each parameter: role_slug is an identifier, add_permissions and remove_permissions are lists of permission IDs with defaults, and project_key acts as a tenant ID with a global fallback. This adds essential meaning beyond the bare schema and clarifies default behavior.

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 first sentence, 'Assign or remove permissions from a role,' clearly states the action and target. This distinguishes it from sibling tools like get_role_permissions (read-only) and create_permission (creating a permission definition). The verb 'assign/remove' makes the purpose unambiguous.

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

Usage Guidelines3/5

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

The description gives context on how the tool works (e.g., project_key fallback to global tenant) but does not explicitly state when to use it over alternatives or provide exclusions. Usage is implied by the role-permission modification function, but there is no direct guidance about 'use this instead of get_role_permissions' or when not to use it.

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.

TDQS

A3.5/5.0
Disambiguation4/5

The tools are organized into clear domains (auth, roles, schemas, translations, projects), and within each domain, tools have distinct purposes (e.g., get_schema vs list_schemas, save_captcha_config vs update_captcha_status). A few pairs like get_auth_status and get_authentication_config could cause minor confusion, but their descriptions clarify the difference.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case, using predictable verbs like get, list, create, update, set, enable, and configure. Even longer names like save_module_keys_with_translations adhere to the same convention, with no mixed casing or arbitrary styles.

Tool Count2/5

With 36 tools, the server exceeds the typical well-scoped range for MCP servers. While the broad platform domain justifies some breadth, the sheer volume can overwhelm agents and suggests the toolset could be consolidated or split into smaller, focused servers.

Completeness3/5

The toolset provides decent coverage for creation, listing, and some updates across entities like permissions, roles, schemas, and translations. However, there are notable gaps: no delete operations for most resources, no role update, and no project update/delete, which leaves lifecycle management incomplete.

Resources