Skip to main content
Glama

Restore a deleted role

colliedesk_role_restore

Bring back a deleted role with its permissions (colliedesk_roles_list with deleted true lists them). Refused when a live role took its name meanwhile: rename that one first.

Needs: team:manage_roles.

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_restore"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / description
      Added value: +"Same shape as colliedesk_role_reset's output."
    • removedOutput schema / properties
      Removed value: -{
      -  "role": {
      -    "properties": {
      -      "assignable": {
      -        "description": "You may give it to someone.",
      -        "type": "boolean"
      -      },
      -      "deletable": {
      -        "type": "boolean"
      -      },
      -      "deleted_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "description": {
      -        "type": "string"
      -      },
      -      "editable": {
      -        "description": "You may change it: not Admin, and you hold every permission it has.",
      -        "type": "boolean"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "invites": {
      -        "description": "Pending invites that would give it.",
      -        "type": "integer"
      -      },
      -      "members": {
      -        "description": "Names of the team members who hold it (deactivated ones end with (deactivated)).",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "permissions": {
      -        "description": "resource:action; Admin lists every permission.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "system": {
      -        "description": "admin or agent for the two built-in roles; null for one the workspace made.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "tokens": {
      -        "description": "Live agent tokens that follow it, as label (owner).",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "updated_at": {
      -        "type": "string"
      -      },
      -      "updated_by": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "description",
      -      "system",
      -      "permissions",
      -      "editable",
      -      "deletable",
      -      "assignable",
      -      "members",
      -      "invites",
      -      "tokens"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "role"
      -]
  2. 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 readOnlyHint=false and destructiveHint=false; the description goes beyond them by naming the required scope (team:manage_roles) and disclosing the name-collision refusal mode. It stops short of saying what happens if the role name matches nothing or whether prior agent assignments are reattached, so it is strong but not exhaustive.

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 short blocks with no waste: the action and its permission scope are front-loaded, and the caveat and auth requirement follow in a compact separate paragraph. Every sentence carries operative information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter restore with an output schema available, the definition covers action, permission requirement, and the main failure mode. It leaves minor gaps around not-found behavior and what happens to role assignments, which an agent might want but can likely infer.

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 any case name or id sourced from colliedesk_roles_list. The description reinforces the source but adds no new syntax or format detail beyond the schema, 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 and resource ("Bring back a deleted role with its permissions") and scopes the result precisely by noting permissions are restored too. It also points to colliedesk_roles_list with deleted true as the discovery path, which separates it from colliedesk_role_create/update/delete.

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 both when-to-use and when-not-to-use: restore only applies to deleted roles, and the call is refused if a live role has since taken the name, with the remediation (rename that one first) spelled out. That is an explicit precondition plus an alternative action, not just implied context.

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