Skip to main content
Glama

export_brain

Destructive

Serialize an agent's brain to a portable Markdown (default) or JSON document: persona/values + plaintext skills + top memories + goals + team (the user's other agents and their brains/domains, for delegate_task routing) + optional work queue. Redacts 'private'-source memory. format: 'md'|'json'; optional brain_id to scope to one brain.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "export_brain"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: md (default) or json
agent_idYesID of the agent
brain_idNoID of the brain
include_work_queueNoAlso include work queue

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / brain_id / description
      Added value: +"ID of the brain"
    • addedInput schema / properties / format / description
      Added value: +"Output format: md (default) or json"
    • addedInput schema / properties / include_work_queue / description
      Added value: +"Also include work queue"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The redaction rule ("Redacts 'private'-source memory") is genuine behavioral disclosure an agent could not infer from the schema. However, the annotations declare destructiveHint=true and readOnlyHint=false while the description reads as a pure read/serialize operation, and the description never clarifies side effects — whether a file is written, where, or what it overwrites. That unresolved tension keeps it at 3.

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?

A single front-loaded sentence with the core action first and detail appended in a parenthetical list; nothing is wasted. The dense plus-separated enumeration is slightly harder to scan than a short bulleted structure would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no output schema, the description covers content scope, format, and redaction adequately. It leaves open the practical outcome of the call — where the serialized document goes and whether the destructive side effect implied by annotations matters — which an agent needs before invoking it.

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%, so all four parameters including the md|json format choice are already documented. The description adds a little meaning (md is the default, brain_id scopes the export, work queue is opt-in) but nothing beyond what the schema descriptions already supply, so baseline 3 applies.

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?

Names a specific verb and resource ("Serialize an agent's brain to a portable Markdown (default) or JSON document") and enumerates the payload (persona/values, skills, memories, goals, team, optional work queue), which tells an agent exactly what comes back. It does not distinguish itself from plausible siblings such as snapshot_brain or create_brain, so it stops short of a 5.

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

Usage Guidelines3/5

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

Gives useful in-tool context — md is the default format, brain_id optionally narrows to a single brain — but never states when to reach for this versus snapshot_brain or other export_* siblings. Usage is implied rather than directed.

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.