Skip to main content
Glama

reflect

Destructive

Run consolidation over an agent's unconsolidated episodes (for a brain) → durable memory + reusable skills + preferences, then mark them done. On-demand (no scheduler). Required: agent_id. Optional: brain_id.

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": "reflect"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesID of the agent
brain_idNoID of the brain

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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"
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds that episodes are consumed ('mark them done') and that the output is memory/skills/preferences, but it never states that re-running on the same agent is non-idempotent or what happens to episodes that fail mid-consolidation — the one gap that matters most given idempotentHint=false.

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?

Very short and front-loaded: verb, input, output, side effect, then the invocation model. The arrow shorthand is slightly telegraphic, and the trailing 'Required: agent_id. Optional: brain_id.' duplicates the schema, which is the only mildly wasted sentence.

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 mutation tool with no output schema, the description does explain what the run produces (memory, skills, preferences) and how it is triggered, which covers the essentials. It is thinner on irreversibility and on what happens when the agent has no unconsolidated episodes, but an agent could still call it correctly.

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 description coverage is 100%, so both parameters are documented in the schema itself. The description only restates required vs optional, adding nothing about how brain_id scopes the consolidation or which episodes are selected when it is omitted; a 3 baseline is appropriate.

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?

States a specific verb ('run consolidation') and resource ('an agent's unconsolidated episodes') plus the resulting artifacts (durable memory, skills, preferences) and the terminal step (mark them done). The purpose is unambiguous, but nothing in the text distinguishes it from any other memory/knowledge-writing tool in the sibling list, 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?

'On-demand (no scheduler)' implies this is the manual trigger for a process that otherwise runs on a schedule, which is useful context for when to call it. However, it gives no prerequisites (e.g. how many unconsolidated episodes justify a run), no when-not-to-use guidance, and no comparison to add_knowledge or any other memory-adjacent sibling.

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.