Skip to main content
Glama

consolidate_session_memory

Reviews recent agent runs, extracts high-value work, and writes structured memory entries, deduplicating against existing records.

Instructions

Scan recent agent runs and write structured memory entries for high-value work.

Reads the n most recent agent_runs, identifies runs with output files and
substantive task summaries, deduplicates against existing memory_entries,
and writes new entries to the DB + markdown files.

Args:
    n_runs: Number of recent agent runs to review (default 20).
    min_quality: 'high' = only runs with output files; 'all' = include run-only entries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
n_runsNo
min_qualityNohigh

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of conveying behavior. It describes scanning, deduplication, and writing to DB and markdown files, but it does not explicitly state whether existing entries are modified or if there are side effects beyond writing. This is moderately transparent.

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?

The description is concise and well-structured, with a single sentence front-loading the core purpose followed by an optional Args section. Every part is relevant and adds value without repetition.

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 tool with two optional parameters and an output schema, the description adequately explains the workflow (scan, identify, deduplicate, write) and side effects (writing to DB and markdown). It does not detail the output schema contents, but that is acceptable given the output schema exists. A minor gap is the lack of explanation of the 'high-value' criteria beyond min_quality.

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

Parameters5/5

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

The input schema only provides types and defaults with no parameter descriptions (0% coverage). The description compensates fully by explaining n_runs as the number of runs to review and min_quality with its two values and their meanings, adding substantial meaning beyond the schema.

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?

The description clearly states the tool's purpose: 'Scan recent agent runs and write structured memory entries for high-value work.' This provides a specific verb-resource pair that distinguishes it from similar tools like add_memory_entry or store_episodic_memory.

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

Usage Guidelines2/5

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

The description lacks any guidance on when to use this tool versus alternatives. It does not mention scenarios, prerequisites, or comparisons to sibling tools, leaving the agent to infer usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SVerITG/Metis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server