Skip to main content
Glama
vuluu2k
by vuluu2k

initBrain

Initialize a structured personal brain repository by creating required folders and markdown files in a single commit for organizing tasks, notes, and goals.

Instructions

Initialize the brain repository structure. Creates all required folders and markdown files in a single commit. Only needs to be called once on a new/empty repo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the `initBrain` method in the `Brain` class. It initializes the brain structure by creating default files if they don't already exist.
    async initBrain(): Promise<{ created: string[] }> {
      const log = getLogger();
    
      // Check if brain already exists by trying to read any section
      try {
        await this.sync.readSection("inbox");
        throw new Error(
          "Brain already initialized — inbox/capture.md exists. Use the other tools to manage your brain."
        );
      } catch (err) {
        if (!isNotFound(err)) throw err;
        // Not found = good, proceed with init
      }
    
      await this.sync.createFiles(
        BRAIN_TEMPLATES,
        "feat(ai): initialize brain structure"
      );
    
      const created = BRAIN_TEMPLATES.map((t) => t.section);
      log.info("initBrain", { created });
      return { created };
    }
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses key behavioral traits: it performs a write operation ('creates'), commits changes ('in a single commit'), and has a specific usage pattern ('once'). However, it lacks details on permissions needed, error handling, or what exactly gets created (e.g., folder names, file types).

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?

Two sentences with zero waste: the first states the purpose and action, the second provides critical usage guidance. It's front-loaded with the core function and efficiently conveys all necessary information without redundancy.

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?

Given the tool's complexity (simple initialization with no parameters) and lack of annotations/output schema, the description is mostly complete. It covers purpose, behavior, and usage, but could improve by specifying what 'required folders and markdown files' entail or potential side effects. Still, it's adequate for the tool's scope.

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?

There are 0 parameters, and schema description coverage is 100%, so the baseline is high. The description adds value by explaining why no parameters are needed ('only needs to be called once'), which provides context beyond the empty schema. It doesn't need to compensate for any parameter gaps.

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 clearly states the specific action ('Initialize'), target resource ('brain repository structure'), and scope ('creates all required folders and markdown files in a single commit'). It distinguishes this from sibling tools by emphasizing it's a one-time setup operation for new/empty repos, unlike ongoing tools like addKnowledge or getTasks.

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?

Explicitly states when to use ('only needs to be called once on a new/empty repo') and when not to use (implied: not for existing repos or repeated calls). It provides clear context about its one-time nature, which helps differentiate it from all sibling tools that are for ongoing operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vuluu2k/knowledge_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server