Skip to main content
Glama

Remove Role

remove_role

Revoke a specific role from a Drupal user to control their permissions. Specify the user ID and role name to remove access.

Instructions

Remove a role from a user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYes
roleYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
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 behavioral burden. 'Remove' implies a destructive mutation, but the description does not state required permissions, whether the operation is reversible, whether it is idempotent, or what happens if the role is not assigned. This is a significant gap for a mutation tool with zero annotation coverage.

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 a single front-loaded sentence with no wasted words. It is appropriately concise for the core action, though its terseness contributes to the missing usage and parameter details elsewhere.

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?

The tool has two required parameters, no annotations, and 0% schema description coverage. While an output schema exists and return values need not be explained, the description omits usage guidance, parameter formats, and behavioral details needed to invoke the tool safely and correctly.

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

Parameters2/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 for both required parameters. It only maps 'uid' to a user and 'role' to a role conceptually, without specifying formats such as machine name, numeric ID, or username. The description adds minimal meaning beyond the property names.

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 states a specific verb and resource: 'Remove a role from a user.' This clearly identifies the operation and distinguishes it from siblings like assign_role or list_roles. However, it does not explicitly name the alternative sibling or scope beyond the one-sentence action.

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 about when to use this tool versus alternatives such as assign_role. It also omits prerequisites, such as whether the user must already exist or whether the role must be currently assigned. Usage context is left entirely to inference from the tool name.

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