Skip to main content
Glama

Change a role

colliedesk_role_update
Idempotent

Rename a role, change its description, or change its permissions: give the whole list in permissions, or add_permissions and remove_permissions to change only those. Everyone who holds it, and every agent token that follows it, gets the change at once: the answer names them, so tell the person you work for. You can only change a role whose every permission you hold, and only give permissions you hold. Admin cannot change; Agent goes back to its first list with colliedesk_role_reset.

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

Input Schema

NameRequiredDescriptionDefault
nameNo
roleYesThe role's name (any case) or id, from colliedesk_roles_list.
descriptionNo
permissionsNoThe whole new list; leave out to keep it.
add_permissionsNoPermissions to add to the list it has.
remove_permissionsNoPermissions to take off the list it has.

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.7/5.0
Behavior5/5

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

Annotations only say the write is non-destructive and idempotent; the description goes well beyond that by disclosing blast radius ('Everyone who holds it, and every agent token that follows it, gets the change at once'), that the response enumerates affected holders, and the required scopes team:manage_roles and team:read. The escalation constraint is a genuinely non-obvious behavioral rule that no structured field carries.

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 operations, then the permissions-mode distinction, then the consequences, then the constraints and scopes — a logical ordering with no filler. Some sentences are dense and clause-heavy (the 'Everyone who holds it...' sentence), which slightly slows parsing, but nothing is redundant.

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?

With an output schema present, the description need not explain return values, yet it usefully notes the response names affected holders. It covers scopes, escalation limits, and the reset alternative, leaving only minor gaps such as whether role-name and description changes can be combined with a permission change in one call.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and each array parameter already has a short description, so the schema carries much of the load. The description still adds real meaning by establishing that permissions is a full replacement set mutually exclusive with the add/remove pair — a semantic relationship the schema cannot express. It says nothing further about name/description beyond the operation names, which is a minor gap.

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?

Opens with concrete verbs and the exact resources touched: rename, description, permissions. It is immediately distinguishable from colliedesk_role_create, colliedesk_role_delete, and colliedesk_role_reset, the last of which is named explicitly as the route for restoring an Agent role's default list.

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 routing between the two mutation modes: supply the whole list in permissions, or use add_permissions/remove_permissions to change only those. It also states the hard preconditions (you must hold every permission a role has, and may only grant permissions you hold), the Admin exclusion, and the alternative tool for Agent roles.

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