Skip to main content
Glama

Stash — Shared AI Memory

Accept brain invite

brain_accept
Idempotent

Join a shared brain you were invited to, by its uuid from init or brain_list: brain_accept({brain: "<brain_uuid>"}). Joining does NOT switch your current brain. Tell the user about the invite and ask whether to switch, because switching moves all of their agents; only then call brain_switch. Accepting again is harmless.

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_accept"
  }
}

Input Schema

NameRequiredDescriptionDefault
brainYesBrain uuid from the invite.

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

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

Annotations already declare idempotentHint=true and destructiveHint=false, and 'Accepting again is harmless' largely restates idempotency. The description does add genuine behavioral context the annotations cannot convey: the no-side-effect-on-current-brain guarantee and the requirement to obtain user consent before a follow-up switch. It stops short of describing what the accepted brain contains or any permission/auth requirements.

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?

Three short sentences, front-loaded with the action and its scope, each carrying a distinct piece of information (what it does, what it does not do, what to do next, and idempotency). Nothing is redundant or padded.

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 single-parameter mutation with an output schema already covering return values, the description supplies everything an agent needs: the argument source, the side-effect boundary, the consent workflow, and safe-retry behavior.

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% and the parameter is already documented as the invite uuid, so the baseline would be a 3. The description adds real provenance beyond the schema by saying the uuid comes 'from init or brain_list,' which tells the agent where to obtain the value before calling.

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?

Names a specific verb and resource ('Join a shared brain you were invited to') and immediately scopes it against the sibling operation by stating 'Joining does NOT switch your current brain.' An agent can distinguish brain_accept from brain_switch without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition (you were invited), an explicit exclusion (accepting does not switch), and an explicit next step routed to a named alternative (ask the user, then call brain_switch). The reasoning for the sequencing ('switching moves all of their agents') makes the guidance actionable rather than arbitrary.

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