Skip to main content
Glama

Set team member role

team_set_member_role
DestructiveIdempotent

Assign the team-scoped member or admin role. Only the current team owner may assign roles. Refused STATE_CONFLICT for the owner, whose role is owner and changes only when ownership is transferred.

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": {
      "id": "<id>",
      "teamId": "<teamId>",
      "role": "<role>"
    },
    "name": "team_set_member_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe member: an account id or alias.
whyNoOptional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters.
roleYes
teamIdYesThe team: its id or slug.

Output Schema

NameRequiredDescriptionDefault
roleYes
agent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed5 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The member: an account id or alias.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / member
      Removed value: -{
      -  "description": "The member: an account id or alias.",
      -  "maxLength": 300,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / team
      Removed value: -{
      -  "description": "The team: its id or slug.",
      -  "maxLength": 300,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / teamId
      Added value: +{
      +  "description": "The team: its id or slug.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "team",
      -  "member",
      -  "role"
      -]New value: +[
      +  "id",
      +  "teamId",
      +  "role"
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag this as a destructive, idempotent, non-read write. The description adds real context beyond them: the owner-only authorization requirement and the STATE_CONFLICT refusal when targeting the owner, whose role only changes via ownership transfer. It does not say what happens to permissions already held by the member when the role changes, which is the main remaining behavioral gap.

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?

Three tight sentences, front-loaded with the action and allowed values, then authorization, then the failure case. Phrasing like 'Refused STATE_CONFLICT for the owner' is telegraphic and slightly harder to parse than plain prose, but nothing is wasted.

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 destructive single-field mutation with an output schema and full annotation coverage, the description covers action, allowed values, authorization, and the primary error condition. The only meaningful omission is the effect on a member's existing permissions when the role changes.

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 75% and the enum already lists member/admin, so the baseline would be 3. The description adds meaning by excluding 'owner' from the assignable set and explaining why (ownership transfer is the only path), which is information no schema field carries.

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?

States a specific verb and resource ('Assign the team-scoped member or admin role') and scopes it to team membership, which implicitly separates it from the workspace-level sibling. It never names an alternative tool, so the differentiation is inferred from scope wording rather than stated outright.

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

Usage Guidelines3/5

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

Gives a clear precondition ('Only the current team owner may assign roles') and a refusal case for the owner, which tells the agent when the call will fail. It does not say when to prefer this over team_add_member or workspace_member_set_role, so selection guidance remains implied.

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.