Skip to main content
Glama

brain_recipe

Saves a task recipe at completion—goal, plan, prompts, dead ends, verification, and outcome—so coding agents can reuse project lessons and session history.

Instructions

Save a task recipe at the end of a task: goal, plan, the exact prompts the user gave (max 50, 4000 chars each, secrets are redacted), dead ends, how it was verified and the outcome.

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": {
      "goal": "<goal>",
      "plan": "<plan>",
      "prompts": "<prompts>",
      "deadEnds": "<deadEnds>",
      "verification": "<verification>",
      "outcome": "<outcome>"
    },
    "name": "brain_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYes
planYes
filesNo
outcomeYes
promptsYes
deadEndsYes
verificationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose notable behavior: prompt caps (50 items, 4000 chars) and that secrets are redacted before storage. It does not say whether repeated saves overwrite or append, whether a prior task context is required, or what the call returns.

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 no filler; the parenthetical limits are compactly embedded rather than given their own sentences. The dense list form is slightly harder to scan than a short bulleted breakdown would be, but nothing is wasted.

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 7-parameter write tool with no annotations and no output schema, the description covers most of the field semantics and some storage behavior. It leaves gaps on the 'files' parameter, idempotency/overwrite behavior, and prerequisites, which matter for a mutation tool.

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 description coverage is 0%, so the description must compensate, and it largely does: it explains that 'prompts' are the exact prompts the user gave, that 'deadEnds' captures failed approaches, and that 'verification' records how the work was checked. Only the 'files' parameter goes unexplained.

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 ('Save a task recipe') and enumerates its contents, so the agent knows exactly what is being persisted. It signals timing ('at the end of a task') that helps separate it from siblings, but never names which sibling to prefer.

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?

'At the end of a task' gives a clear trigger condition, which is real usage guidance. However, it offers no exclusions and does not distinguish this from adjacent storage-like siblings such as brain_record or brain_reflect_packet, leaving overlap for the agent to resolve.

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