Skip to main content
Glama

Delete a role

colliedesk_role_delete

Delete a role nobody uses: no team member holds it, no pending invite gives it and no live agent token follows it (otherwise refused with what still uses it). Admin and Agent cannot go. Bring it back with colliedesk_role_restore.

Needs: team:manage_roles, team:read.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "role": "<role>"
    },
    "name": "colliedesk_role_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe role's name (any case) or id, from colliedesk_roles_list.

Output Schema

NameRequiredDescriptionDefault
nextYes
deletedYesName of the deleted role.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the mutation/safety profile; the description adds refusal-on-in-use behavior with diagnostic detail ('otherwise refused with what still uses it'), protected built-in roles, required scopes, and the undo path. The only soft spot is that 'delete' plus destructiveHint=false is resolved only implicitly via the restore mention, so an agent must infer a recoverable/soft delete.

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

Conciseness5/5

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

Two tight sentences plus a 'Needs:' permission line. The precondition and protected-role exception are front-loaded before the restore pointer, with no repeated or filler 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?

For a single-parameter delete with an output schema and annotations, the description covers everything an agent needs: eligibility conditions, protected roles, permission scopes, refusal semantics, and the recovery tool.

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 parameter already documents that it accepts a role name in any case or an id from colliedesk_roles_list. The description adds no syntax or format meaning beyond that, 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') and immediately narrows the scope to unused roles, listing what counts as 'in use'. It also names the paired restore tool, so an agent can distinguish delete from restore and from role_create/reset/update without opening another 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?

Gives explicit when-not conditions (no team member holds it, no pending invite grants it, no live agent token follows it), names the refused-usage behavior, and excludes Admin/Agent roles. It also points to colliedesk_role_restore as the alternative path for undoing a deletion.

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.

Resources