Skip to main content
Glama

Stash — Shared AI Memory

Invite to shared brain

brain_invite
Idempotent

Invite someone to a shared brain you own, by email, with a role: owner (everything, including inviting and removing people), writer (read and write memories) or reader (read only). Example: brain_invite({brain: "Cartona team", email: "sara@example.com", role: "writer"}). Stash sends no email: tell the person yourself. The invite waits even if they have no Stash account yet, and only matches a verified email. Personal brains cannot be shared. Confirm the email and role 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_invite"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesRole to give them.
brainYesBrain uuid or name (among your own brains).
emailYesEmail address of the person to 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
Behavior5/5

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

Goes well beyond the annotations by disclosing the non-obvious mechanics: no notification email is sent, the invite persists for people without a Stash account, and it only matches a verified email. It also surfaces the constraint that personal brains cannot be shared, which pre-empts a predictable failure the annotations never mention.

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?

Front-loads the action and role definitions, then adds the example, then the caveats — no sentence is filler. The inline example earns its space because it demonstrates the brain-name format and a realistic role value.

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?

An output schema exists, so return shape need not be covered, and everything else an agent needs — required inputs, role semantics, the no-email side effect, pending-invite behavior, and the personal-brain exclusion — is stated. Nothing material is missing for a three-parameter mutation.

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 the baseline is 3, but the description earns extra by expanding each enum value into actual capability (owner = everything including invite/remove, writer = read/write memories, reader = read only). The brain and email parameters get no meaning beyond the schema, which already describes them.

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?

States a specific verb and resource (invite someone to a shared brain) plus the two scoping conditions that separate it from adjacent tools: it must be a brain you own, and it operates by email address rather than by existing membership. The role enumeration and the 'personal brains cannot be shared' restriction further narrow the action so an agent can tell it apart from brain_set_role or brain_accept 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?

Gives concrete operating guidance: confirm the email and role with the user first, and tell the person yourself because Stash sends no email. It also rules out a case (personal brains) but never names the sibling to use when the invitee is already a member (e.g., brain_set_role), so the alternative routing is left to inference.

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