Skip to main content
Glama

Set workspace member role

workspace_member_set_role
DestructiveIdempotent

Change a member's role: collaborator (works on everything in the workspace: files, folders, tables, tasks and outputs) or viewer (reads everything and posts messages); either is a guest, who does not manage people, public links, the guide, task definitions or triggers. id is the member: its row id from workspace_member_list (it stands alone), or an account id, alias or email address with workspaceId. Only the workspace's owner or a member of the team that owns it may (share); a guest of any role is refused GUEST_FORBIDDEN, and a retry changes nothing. A change to viewer at once returns the member's held tasks to the queue, withdraws their open submissions, clears their task and task definition roles, lowers their keys' write access here to read, and disconnects their browser views.

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>",
      "role": "<role>"
    },
    "name": "workspace_member_set_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe member: its row id (id from the member list; it stands alone), or with workspaceId an account id or alias (that account's row) or an email address (the row of the primary account of the person who verified it, else the row an add or invite by that address made).
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
roleYesviewer or collaborator.
workspaceIdNoThe workspace (its id or its slug), when the member is named by account id, alias or email; optional beside a member row id (the row must be in it).

Output Schema

NameRequiredDescriptionDefault
memberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The member: its row id (id from the member list; it stands alone), or an account id, alias or email address with workspaceId (the person's primary-account row, or the row an add or invite by the address made)."New value: +"The member: its row id (id from the member list; it stands alone), or with workspaceId an account id or alias (that account's row) or an email address (the row of the primary account of the person who verified it, else the row an add or invite by that address made)."
    • changedInput schema / properties / role / description
      Previous value: -"viewer or editor."New value: +"viewer or collaborator."
    • changedInput schema / properties / role / enum
      Previous value: -[
      -  "viewer",
      -  "editor"
      -]New value: +[
      +  "viewer",
      +  "collaborator"
      +]
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed4 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The member: its row id (id from the member list; it stands alone), or an account id, alias or email address with workspaceId (the person's primary-account row, or the row an add or invite by the address made).",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / member
      Removed value: -{
      -  "description": "The member: its row id (id from the member list; it stands alone), or an account id, alias or email address with workspaceId (the person's primary-account row, or the row an add or invite by the address made).",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / properties / workspaceId / description
      Previous value: -"The workspace (its id or its slug), when member is an account id, alias or email; optional beside a row id (the row must be in it)."New value: +"The workspace (its id or its slug), when the member is named by account id, alias or email; optional beside a member row id (the row must be in it)."
    • changedInput schema / required
      Previous value: -[
      -  "member",
      -  "role"
      -]New value: +[
      +  "id",
      +  "role"
      +]
  3. Changed3 schema fields changed
    • removedInput schema / properties / membership
      Removed value: -{
      -  "description": "external only: a person added to a workspace is a guest (shared items only); internal access comes from owning the workspace or being in its team, so internal is refused INTERNAL_NEEDS_TEAM. external changes nothing.",
      -  "enum": [
      -    "internal",
      -    "external"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / role / description
      Previous value: -"viewer or editor; kept when omitted."New value: +"viewer or editor."
    • changedInput schema / required
      Previous value: -[
      -  "member"
      -]New value: +[
      +  "member",
      +  "role"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / membership / description
      Previous value: -"internal or external; kept when omitted."New value: +"external only: a person added to a workspace is a guest (shared items only); internal access comes from owning the workspace or being in its team, so internal is refused INTERNAL_NEEDS_TEAM. external changes nothing."
  5. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"The workspace, when member is an account id, alias or email; optional beside a row id (the row must be in it)."New value: +"The workspace (its id or its slug), when member is an account id, alias or email; optional beside a row id (the row must be in it)."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  6. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already signal destructive and idempotent, and the description goes well beyond them by enumerating exactly what changes to viewer destroys or rewinds: held tasks returned to the queue, open submissions withdrawn, task and task-definition roles cleared, key write access lowered, browser views disconnected. It also discloses the refusal code and that retries are no-ops.

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

Conciseness3/5

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

Front-loaded with the core action, but the single dense paragraph mixes permissions, role semantics, id resolution and side effects, and the fragment 'may (share)' is garbled enough to briefly confuse a reader. Every sentence is substantive, yet the structure would benefit from separation.

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 destructive four-parameter mutation with an output schema, the description covers authorization, refusal behavior, id resolution, role meaning, and post-change side effects. Return values can be left to the output schema, so nothing an agent needs is missing.

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?

With 100% schema coverage the baseline is 3, but the description adds semantic meaning the schema does not: that a collaborator works on everything (files, folders, tables, tasks, outputs) while a viewer reads and posts messages, and that guests of either role cannot manage people, public links, the guide, task definitions or triggers. It also restates the id resolution path in prose.

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?

Opens with a specific verb and resource ('Change a member's role') and immediately enumerates the two permissible roles with their scope. It does not name the sibling team_set_member_role, so the agent must infer that this tool is workspace-scoped only, which keeps it just short of a 5.

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?

Gives concrete preconditions: only the workspace owner or a member of the owning team may call it, guests are refused with GUEST_FORBIDDEN, and a retry changes nothing. It also states when workspaceId is required versus optional beside a row id. It lacks an explicit alternative for team-level role changes.

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.