Skip to main content
Glama
anythink-cloud

Anythink-MCP

Official

Roles: delete

roles_delete
Destructive

Delete a role by ID to remove its granted permissions. Check users_list first because roles held by users or the built-in admin role cannot be deleted.

Instructions

Delete a role by ID. Removes a role and the permissions it grants. The API refuses while any user still holds the role, and the built-in admin role can't be deleted, so check users_list for its holders first. To take away only some access, use roles_permissions_remove instead. It changes or deletes existing data, so check with the user before running it.

Input Schema

NameRequiredDescriptionDefault
idYesRole ID to delete. Find it with roles_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.37
    • changedInput schema / properties / id / description
      Previous value: -"Role ID to delete"New value: +"Role ID to delete. Find it with roles_list."
  2. Addedv0.2.27

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds real behavioral context beyond them: the deletion is blocked while any user holds the role, the built-in admin role is undeletable, and the cascade removes granted permissions. It also advises confirming with the user, which is actionable for an agent operating a destructive 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?

Front-loaded with the action, then constraints, then the alternative, then the safety prompt – a logical ordering with no filler. The final sentence partially restates the destructiveHint annotation, a minor redundancy, but the rest of the text is tight.

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?

For a one-parameter destructive tool with no output schema, the description covers everything an agent needs: the effect, the blocking conditions, the prerequisite lookup, and the safer alternative. Nothing material is missing.

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 coverage is 100% and the single `id` parameter is already documented in the schema ('Role ID to delete. Find it with roles_list.'). The description's 'by ID' phrasing adds nothing beyond the structured field, so the baseline 3 applies.

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 ('Delete a role by ID') and immediately clarifies scope ('Removes a role and the permissions it grants'). It also explicitly distinguishes itself from the closest sibling by name (`roles_permissions_remove`), so an agent can route correctly without opening either 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?

Provides explicit when-to-use and when-not-to-use guidance: use `roles_permissions_remove` to revoke only some access, and check `users_list` first because the API refuses deletion while a user holds the role. The alternative and the precondition that selects it are both named.

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