Skip to main content
Glama

Reflect

reflect

Run an on-demand reflection/consolidation pass over the agent's unconsolidated episodes (§8.2). Calls the agent-reflect edge function; may write new skills/memories and marks episodes consolidated.

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_idYes
brain_idNo
max_episodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing side effects: it may write new skills/memories and marks episodes consolidated, which is exactly the mutation the agent needs to know about given readOnlyHint=false and destructiveHint=false. It is consistent with idempotentHint=false since consolidation changes state, though it does not say what happens on a repeat call when nothing is unconsolidated.

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?

Two compact sentences, front-loaded with the action and followed by the mechanism and side effects. The '(§8.2)' spec reference adds little for a calling agent but costs almost nothing.

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 state-mutating tool with no output schema and no parameter documentation, the description covers the action and side effects well but leaves the caller unable to know how to scope the run (brain_id) or bound it (max_episodes), nor what a successful pass returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All three parameters (agent_id, brain_id, max_episodes) have zero schema description coverage, and the description explains none of them. 'the agent's unconsolidated episodes' hints at agent_id's role, but brain_id scoping and what max_episodes caps are left entirely to guesswork.

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 and resource: an on-demand reflection/consolidation pass over the agent's unconsolidated episodes. The mention of the concrete mechanism (`agent-reflect` edge function) and the episode scope makes the action unambiguous, though it does not name a sibling to contrast against.

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?

The phrase 'on-demand' plus the qualifier 'unconsolidated episodes' implies the trigger condition (episodes are pending consolidation), but there is no explicit when-to-use/when-not-to-use statement and no named alternative among siblings such as the memory or skill tools it writes into.

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.

Resources