Skip to main content
Glama
Master0fFate

LatentContext MCP Server

by Master0fFate

memory_compress

Compress memory at working, session, or epoch scope to reduce token usage and consolidate key information. Removes original entries after compression. Use when conversation buffers grow large or to merge summaries.

Instructions

Compress memory at a given scope to reduce token usage and consolidate information.

WHEN TO USE:

  • 'working': When working memory is getting large during a long conversation. Compresses current session buffer into a summary.

  • 'session': When there are many session summaries. Merges multiple session-level summaries into fewer entries.

  • 'epoch': After many sessions have accumulated. Promotes session summaries into high-level long-term knowledge. Requires at least 10 session summaries.

EFFECTS:

  • All compression is lossy — details are condensed but key information is preserved.

  • Compressed data is re-embedded for semantic search.

  • Original entries are removed after compression.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYesCompression scope: 'working' (current session), 'session' (merge sessions), 'epoch' (long-term consolidation).
Behavior5/5

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

With no annotations provided, the description fully shoulders the transparency burden. It explicitly states that compression is lossy, original entries are removed, and data is re-embedded. This disclosure is comprehensive for a mutation tool.

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 well-structured with clear sections (WHEN TO USE, EFFECTS). Every sentence adds value, and there is no redundancy. It is appropriately sized for a single-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one param, no output schema), the description is complete. It covers purpose, usage conditions, and behavioral effects without any gaps. An agent can confidently select and invoke this tool.

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?

Only one parameter exists with 100% schema coverage. The description adds significant meaning beyond the schema by explaining each scope's effect and the requirement for epoch. This enriches the agent's understanding of how to select the appropriate scope.

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: compressing memory to reduce token usage and consolidate information. It identifies the specific resource ('memory') and action ('compress'), and distinguishes it from siblings like memory_forget or memory_retrieve.

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 provides explicit guidance for when to use each scope (working, session, epoch), including a prerequisite for epoch (at least 10 session summaries). While it doesn't explicitly state when not to use the tool, the sibling context and clear scope usage cover most decision-making needs.

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/Master0fFate/LatentContext-MCP'

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