Skip to main content
Glama

Reflect

reflect

Consolidate an agent's unconsolidated episodes into durable memory + skills (an LLM reads them and writes what's worth keeping), then marks them consolidated. On-demand only — there's no scheduled/background reflection on this platform.

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
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, and the description usefully adds that an LLM performs the consolidation and that episodes are marked consolidated afterward. It still omits cost/latency expectations for an LLM-driven operation and what happens if the process fails partway, which matters for a non-idempotent mutation.

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, front-loaded with the action and resource, with the operational constraint (on-demand only) placed last. No filler, no restatement of the title.

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 three-parameter mutation with no output schema, the definition covers what it does, how it works, and its mutation footprint, which is close to sufficient. The gap is the undocumented parameters and the absence of any sense of return value or failure behavior.

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?

Schema description coverage is 0% — agent_id, brain_id and max_episodes carry no documented meaning anywhere. The description does not mention any of the three; in particular the role of brain_id versus agent_id and what max_episodes bounds (how many episodes are processed per call) is left entirely to inference.

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?

Specific verb and resource: "Consolidate an agent's unconsolidated episodes into durable memory + skills," with the mechanism (an LLM reads them) and the side effect (marks them consolidated). It is clearly distinguishable from the memory-item CRUD siblings, though it never names them to say why you'd pick reflection over writing items directly.

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 only — there's no scheduled/background reflection on this platform" tells the agent this is not automatic, which is real guidance. But it gives no trigger conditions (e.g. after N episodes, after a session ends), no prerequisites like whether the agent must exist or have unconolidated episodes, and no routing to alternatives such as create_ai_memory_item.

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