Skip to main content
Glama

Set a team member's roles

colliedesk_member_roles_set
Idempotent

Set which roles a team member holds, by role name: the whole list in roles, or add_roles and remove_roles to change only those. Everyone keeps at least one role. You may give or take only roles whose every permission you hold, and only change someone who holds no permission you lack; the last active member with Admin keeps it. Agent tokens of the member that follow a role taken away stop at once, and start again when it is given back.

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": {
      "member": "<member>"
    },
    "name": "colliedesk_member_roles_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
rolesNoThe whole list of role names they should hold.
memberYesThe team member's email, display name or id (see colliedesk_agents_list).
add_rolesNoRole names to give, keeping the others.
remove_rolesNoRole names to take away, keeping the others.

Output Schema

NameRequiredDescriptionDefault
memberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=true and destructive=false; the description adds substantive behavior on top: the at-least-one-role invariant, the permission-scoped grant/revoke rule, the last-Admin protection, and the side effect that a member's agent tokens stop immediately when a role is removed and resume when it is restored. That token-revocation side effect is precisely the kind of consequence an agent could not derive from the structured fields.

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 main action and its two modes are front-loaded, followed by invariants, then prerequisites in a compact 'Needs:' line. Sentences are dense but every clause carries operative information; only the agent-token sentence is slightly verbose.

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 four-parameter mutation tool with an output schema, the description covers modes, invariants, authorization scope and side effects, leaving nothing critical unstated. Minor gaps remain around error behavior for unknown role names or insufficient permissions.

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 100%, so each parameter is already documented, making 3 the baseline. The description adds real meaning beyond the schema by framing 'roles' as the whole list and 'add_roles'/'remove_roles' as deltas that change only those, clarifying the either/or relationship between the two calling styles.

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 gives a specific verb and resource (set which roles a team member holds) and immediately disambiguates the two modes: a full replacement via 'roles' versus a delta via 'add_roles'/'remove_roles'. It does not name the closest sibling, colliedesk_team_member_update, so an agent must infer the split between updating member attributes and updating roles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly states the two ways to call the tool and when each applies (whole list versus change only those roles), which is exactly the decision an agent needs to make. It also gives the prerequisites ('Needs: team:manage_roles, team:read'), but there is no explicit when-not-to-use guidance or named alternative.

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