Skip to main content
Glama

Reflect

reflect

The learning loop. Returns the agent's unconsolidated episodes + recent feedback + current skills/top-memory so you (the LLM) can extract durable facts and reusable skills — then write them back with remember/save_skill (cite the episode ids as provenance). Marks the returned episodes consolidated unless peek=true.

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
peekNoIf true, don't mark episodes consolidated (dry run).
limitNoMax episodes to load (default 50).
agent_idYes
category_idNo
category_slugNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already reveal this is not read-only (readOnlyHint=false) and not idempotent, and the description correctly discloses the exact side effect: returned episodes get marked consolidated. That is valuable context beyond the annotations. However, it says nothing about limits, cost of repeated calls, or what happens to episodes skipped by limit, so the mutation story is only partly told.

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?

Front-loaded with the one-line identity, then the return contents, then the required follow-up action, then the caveat about consolidation. Dense but each clause carries information. The em-dash clause is slightly cramped and could be split for readability.

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?

With no output schema and no annotations explaining the return payload, the description usefully enumerates what comes back and why. It also covers the mutation and the dry-run escape hatch. Missing only secondary operational detail such as how limit interacts with consolidation and what an empty result looks like.

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 coverage is only 40%, so the description has to compensate, and it does for the most consequential parameter: peek is explained as a dry run that suppresses the consolidation marking, reinforcing the schema text with the actual effect. The remaining gaps (agent_id, category_id, category_slug, limit) are left to the schema, some of which have no description at all, so it is good but incomplete.

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?

Opens with a specific framing ("The learning loop") and then states concretely what it returns: unconsolidated episodes, recent feedback, current skills/top-memory. It also distinguishes itself from the write-side siblings by naming remember and save_skill as the follow-up step, so an agent can place it in a read-then-write cycle without opening another 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 clear situational guidance: call this to gather material, then write findings back via remember/save_skill with episode ids as provenance. The peek=true dry-run alternative is also signposted. It does not state when not to call it (e.g. nothing left to consolidate) or how often to loop, which keeps it short of a 5.

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