Skip to main content
Glama

Stash — Shared AI Memory

Remove brain member or invite

brain_remove
DestructiveIdempotent

Owners only. Remove a member from a shared brain, or cancel a pending invite, by email: brain_remove({brain: "Cartona team", email: "sara@example.com"}). Also cancels any pending invite for that email. The last owner cannot be removed. Confirm with the user first: the person loses access to the brain's memory at once.

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

Input Schema

NameRequiredDescriptionDefault
brainYesBrain uuid or name (among your own brains).
emailYesEmail of the member or invited person.

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

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial new context: the authorization requirement, the last-owner guard, the side effect of also cancelling a pending invite, and the immediate loss of memory access. That is exactly the kind of consequence information an agent needs before invoking a destructive tool.

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?

It is short and front-loads the permission gate and the core action, with the example and confirmation warning placed well. Minor redundancy: 'cancel a pending invite' is stated once in the opening and again in the third clause.

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?

With an output schema present and annotations covering safety, the description fills the remaining gaps an agent needs: who may call it, the last-owner edge case, the hidden invite-cancellation effect, and the irreversible access loss.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented as a brain uuid/name and the target email. The inline example call shows the shape of a realistic invocation but adds no semantics the schema lacks, so this sits at the baseline.

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?

The description names a specific verb and resource (remove a member from a shared brain) and adds a second concrete mode (cancel a pending invite), both keyed by email. That dual scope, plus 'Owners only', makes it distinguishable from siblings like brain_leave (self-removal) and brain_invite without opening any schema.

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 states the actor precondition ('Owners only') and an explicit procedural instruction ('Confirm with the user first'), plus the constraint that the last owner cannot be removed. It does not explicitly route the agent elsewhere for self-removal, so it stops short of full when-not/alternative guidance.

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