Skip to main content
Glama

Brain Write

brain_write

Create or update a Brain file. Writes to your default brain unless you name one; shared brains need editor access. Replaces the whole body (use mode "append" to add to the end); the previous body is kept as a version. Credentials are refused — the Brain is memory, not a vault. Needs your agent bearer token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesMarkdown content.
modeNoreplace (default) or append.
nameYesFile name ending in .md, e.g. customer-faq.md
brainNoBrain to write into (owner-handle/name for shared brains, needs editor access). Omit for your default brain.
folderNoFolder, e.g. Company. New files default to "Agent".

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so impressively. It discloses that the whole body is replaced, the previous body is kept as a version, credentials are refused, bearer token auth is required, and editor access is needed for shared brains.

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?

Four dense sentences, each earning its place: purpose, default targeting and permissions, replacement/append semantics, and security. No filler or redundancy, and the most important behavioral information is front-loaded.

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 write tool with no output schema, the description is complete: target selection, access prerequisites, mode behavior, versioning, and auth are all covered. An agent has enough to invoke the tool correctly without needing to open the schema.

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. The description adds meaningful semantics beyond the schema: the default-brain behavior when 'brain' is omitted, the access requirement for shared brains, and the version-retention consequence of replace mode. This goes beyond simple restatement.

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 opens with a specific verb-resource pair, 'Create or update a Brain file,' which clearly identifies the tool's function. It is immediately distinguishable from the read/search siblings like brain_get, brain_list, and brain_search.

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?

The description provides clear usage context: writes to the default brain unless another is named, shared brains need editor access, and mode 'append' adds to the end while the default replaces. It doesn't explicitly contrast against read tools or say when not to use it, but the sibling names make the primary distinction obvious.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: Brain files are handled by brain_get/list/search/write, while skills are handled by get/install/search/submit_skill. Even the two 'get' tools differ clearly by resource type in their names and descriptions.

Naming Consistency3/5

The Brain tools consistently use a noun_verb pattern (brain_get, brain_list, brain_search, brain_write), but the skill tools switch to verb_noun (get_skill, install_skill, search_skills, submit_skill). The mixed ordering is readable but not fully consistent across the tool set.

Tool Count5/5

Eight tools is well-scoped for a server covering two related domains: personal Brain memory and skill catalog management. Each tool serves a clear purpose without redundancy or bloat.

Completeness4/5

The Brain domain covers list, get, search, and write, but lacks a delete/remove operation. The skill domain covers search, inspect, install, and submit, which supports the main workflows. Overall the surface is strong with only minor gaps.

Resources