Skip to main content
Glama

Stash — Shared AI Memory

Leave shared brain

brain_leave
DestructiveIdempotent

Leave a shared brain you belong to: brain_leave({brain: "Cartona team"}). Your own personal brain cannot be left. The last owner cannot leave: make someone else an owner first. If it was your current brain, memory tools are refused until brain_switch picks another. 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>"
    },
    "name": "brain_leave"
  }
}

Input Schema

NameRequiredDescriptionDefault
brainYesBrain uuid or name (among your own brains).

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.5/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, and the description goes well beyond them: it discloses the precondition (cannot be last owner), the downstream consequence (memory tools are refused if this was your current brain until brain_switch picks another), and a confirmation requirement.

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

Conciseness5/5

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

A short paragraph that front-loads the action and the example, then layers constraints in the order an agent would hit them (personal brain, last owner, current-brain consequence, confirmation). Every sentence carries unique constraint information; nothing is repeated from the annotations.

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?

Low-complexity single-param tool with rich annotations and an output schema, and the description still covers all preconditions and side effects. Nothing an agent needs in order to decide whether, and how, to call it is missing.

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 coverage is 100% and the single param already documents 'uuid or name (among your own brains)'. The inline example reinforces that a human-readable name is acceptable, but adds no format, matching, or ambiguity-resolution detail beyond the schema, so the baseline 3 applies.

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?

Specific verb+resource ('Leave a shared brain you belong to') with an inline call example, and it immediately delimits scope by stating the personal brain cannot be left, which separates it from brain_switch and brain_accept/decline without needing their schemas.

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?

Explicit when-not conditions: not for your personal brain, not as the last owner, and 'Confirm with the user first' before acting. It stops short of naming the alternative tools that resolve those blockers (brain_set_role to promote an owner, brain_switch to move to another brain), leaving the agent to infer them from the sibling list.

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