Skip to main content
Glama

Find anything kept and see how it connects

brain
Read-onlyIdempotent

Search tasks and documents, including archived items, without opening them; filter by dates, tags, lists, or folders and inspect task steps, links, and project parts.

Instructions

Search and walk the person's tasks and documents, archive included, without opening them. query ranks them by where the words turn up, then by how recent, each with its newest line saying them; when none has every word, those with the most come, said so. The other fields sift tasks. doc or task alone gives its card: a document's sections with at, lines and the print edit_doc needs, a task's state, steps and parts, and what cites each; links brings its neighbours of one kind; doc with query, its lines. part_of alone groups a project's open parts: blocked, under way, waiting on the person, not started. folder or scope alone lists documents; nothing at all, the lists, folders and tags with their counts. Answers are capped and next says how to go on. The text itself is read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "brain"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoDate or deadline on or before this day
docNoA document's id: its card; with `query`, the lines that say it, their numbers and section
tagNoCarrying this tag, # or not. Any sifting field leaves documents out
fromNoDate or deadline on or after this day (2026-08-31)
listNoIn this list, as `catch_up` names it
taskNoA task's id: its card
afterNoSkip this many, to page on while `total` is higher
limitNo10 by default and 100 at most; 50 for a project's parts, and 50 up to 200 for a folder's documents
linesNoFalse: titles alone, without their line
linksNoWith `doc` or `task`: its neighbours of this kind, each with title and state
queryNoWords, in any order, accents or not; quote a phrase. Not needed when sifting
scopeNoDefaults to either
aroundNoWith `doc` and `query`: lines each side of a hit, 0 to 10, 1 by default
folderNoA folder by name, path or id: alone, its documents; with `query`, it and those below
sourceNoWhether this exact source was filed already; not with `query`
part_ofNoThe parts of this task, by id
sectionNoWith `doc`: the headings under this `at`, for an outline that came cut
by_agentNoTrue: filed by an agent; false: by the person
said_doneNoTrue: an agent said done or not doing and the person has not decided; false: nobody did
from_sourceNoTasks whose `source` starts with this, however written: «sereno» brings all read from there

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.49.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses archive inclusion, ranking by term placement and recency, fallback ranking when no item has every word, result caps, `next` pagination, card contents, and link/part statuses. It does not cover permissions or rate limits, but those are not central for a read-only search tool.

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?

The description is front-loaded and information-dense, with no filler. However, the telegraphic phrasing and long semicolon-heavy sentences make it harder to parse than necessary.

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

Completeness4/5

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

For a 20-parameter search/navigation tool with no output schema, it describes the major result modes and pagination behavior well enough to call it correctly. Some card details and filter interactions remain only in the schema, but the description is broadly complete.

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 schema already carries per-field definitions. The description still adds meaningful combination semantics: `doc` with `query` returns matching lines, `links` works with `doc`/`task`, `part_of` alone groups open parts, and `folder`/`scope` alone lists documents. It does not spell out every filter's effect, but those are in the schema.

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 ('Search and walk') and resources (tasks and documents), includes archive scope, and distinguishes from reading by saying 'The text itself is `read`.' The name 'brain' is opaque, but the title and description make the purpose unambiguous.

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?

It maps parameter groups to intents: `query` for ranked search, bare `doc`/`task` for cards, `links` for neighbours, `part_of` alone for project parts, `folder`/`scope` alone for document lists, and no parameters for top-level lists. It also routes full text to `read`, giving a clear alternative for content retrieval.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.