Skip to main content
Glama

Stash — Shared AI Memory

Change member role

brain_set_role
DestructiveIdempotent

Owners only. Change a member's role in a shared brain, including promoting to owner or demoting an owner: brain_set_role({brain: "Cartona team", email: "sara@example.com", role: "reader"}). Owners are all equal, so an owner can demote any other owner. The last owner cannot be demoted. Confirm with the user first.

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": {
      "brain": "<brain>",
      "email": "<email>",
      "role": "<role>"
    },
    "name": "brain_set_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesNew role.
brainYesBrain uuid or name (among your own brains).
emailYesEmail of an existing member.

Output Schema

NameRequiredDescriptionDefault
kindNo
nameYes
roleNo
brainYes
emailNo
messageYes
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description builds on that with non-obvious rules: owners are all equal and may demote any other owner, but the last owner cannot be demoted. It also requires user confirmation before a destructive change, which the annotations cannot express.

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 permission constraint is front-loaded, and each sentence adds distinct information (scope, example, owner-equality rule, last-owner invariant, confirmation). The inline example call is a little bulky but not filler.

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?

The tool has an output schema and rich annotations, so the description only needed to cover permissions, invariants and pre-call behavior, which it does fully. Nothing the agent needs in order to call this correctly 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?

Schema coverage is 100%, so all three parameters are already documented and the baseline is 3. The description adds meaning by framing the 'role' value as promotion or demotion of an existing member and shows a concrete invocation with a brain name and an existing member's email.

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 opens with a specific verb and resource: 'Change a member's role in a shared brain', and even names the promotion/demotion cases. That is far more precise than the title alone, but it never names a sibling tool (e.g. brain_invite vs brain_remove) to route the agent among related membership operations.

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?

'Owners only' gives an explicit prerequisite, and 'Confirm with the user first' tells the agent how to behave before calling. It stops short of naming alternatives or when-not-to-use cases, such as adding a new member instead of changing an existing one's role.

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