Skip to main content
Glama

Reflect

reflect

Run consolidation over an agent's unprocessed episodes: an LLM pass extracts durable facts (-> memory), reusable procedures (-> skills), and preferences, then marks those episodes consolidated. Call after a batch of work, or on a schedule.

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": {
      "agentId": "<agentId>",
      "maxEpisodes": "<maxEpisodes>"
    },
    "name": "reflect"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYes
brainIdNo
maxEpisodesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the mutation profile (readOnlyHint=false, idempotentHint=false) without saying what actually changes; the description adds real context, namely that an LLM pass produces new memories/skills and marks source episodes consolidated so they will not be reprocessed. It does not cover cost, latency, or failure/partial-run behavior, keeping it below a 5.

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: the first front-loads the action and its outputs, the second gives the trigger. No filler, no restating of the title.

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?

The mutating behavior and its side effects are well covered, which matters most for a non-idempotent tool with no output schema. However, with 0% schema coverage and no return description, the meaning of 'brainId' and 'maxEpisodes' is left entirely unstated, so an agent cannot confidently parameterize the call.

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% for three parameters, so the description carries the full burden and does not meet it. It implies the agent whose episodes are processed but never explains 'brainId' or the purpose and cap of 'maxEpisodes' (despite the 1-100 bound), leaving the caller to guess the batching semantics.

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?

States a specific verb and resource ('run consolidation over an agent's unprocessed episodes') plus the concrete effects: facts to memory, procedures to skills, and episodes marked consolidated. That mechanism is distinct from any create_memory_item or forget sibling, so the agent can tell what this tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit timing guidance ('after a batch of work, or on a schedule'), which is enough to know when the call is appropriate. It stops short of naming an alternative or a when-not condition, but for a consolidation pass the trigger conditions are the main thing an agent needs.

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