Skip to main content
Glama

consolidate_session_memory

Scan recent agent runs, identify high-value work with output files, deduplicate against existing memory entries, and write new structured memory entries to the database and markdown files.

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

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

No annotations provided, so description carries full burden. It discloses deduplication, writing to DB and markdown files, and the filtering logic. However, it does not describe all behavioral traits such as error handling, overwrite behavior, or performance implications. Adds context beyond schema but not exhaustive.

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?

Description is concise and well-structured: a one-sentence summary, followed by an explanatory paragraph, then labeled parameter documentation. No unnecessary words, and front-loaded with purpose.

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?

Given the tool's complexity (batch operation, dedup, dual output) and presence of an output schema, the description covers key aspects: selection criteria, dedup, and targets. It lacks mention of error conditions or behavior with empty runs, but is mostly complete.

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?

Schema description coverage is 0%, so description compensates fully. It explains each parameter clearly: n_runs as count of runs to review, min_quality with 'high' vs 'all' distinction. This adds semantic meaning beyond the bare schema types and defaults.

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 states a specific verb+resource: 'Scan recent agent runs and write structured memory entries.' It clearly distinguishes itself from siblings like add_memory_entry (individual addition) or search_memory (search) by focusing on bulk consolidation from agent runs.

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?

The description implies usage context by mentioning 'recent agent runs' and 'high-value work'. It explains the process but does not explicitly state when to use it vs. alternatives like add_memory_entry or when not to use it. Lacks explicit exclusions or direct comparisons.

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_PH'

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