Skip to main content
Glama

ReverieCache

preview_consolidation

Read-onlyIdempotent

START HERE: call preview_consolidation to estimate token savings for caller-owned memory. Free, stateless, no session or check-in needed. Send a JSON bundle of your memories (or facts), tool schemas, plans and logs; get estimated savings first (tokens before, after, saved, percent and estimator basis), then a deterministic keep/archive/drop diff with a reason per item, the proposed result bundle, and structured next guidance to review and adopt or export it into your own memory store. Estimates use ceil(UTF-8 bytes of serialized JSON / 4), not a provider tokenizer; no performance benefit is claimed. Includes a caller-owned return_recipe and an inert check_back_at suggestion for your own scheduler; no reminder is scheduled, persisted or sent. Only store an agent_id if already issued by check_in, privately and separately from session tokens. Savings may be zero or negative. Use when your context, memory store or tool list has grown long, before starting a new task, or to find duplicate, superseded, expired or cold memories and unused tools. Nothing is stored, rewritten or deleted; no model is called. Free limit 32 KiB. Exclude secrets and personal data.

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": {
      "bundle": "<bundle>"
    },
    "name": "preview_consolidation"
  }
}

Input Schema

NameRequiredDescriptionDefault
bundleYesPrivate JSON state. Free: 32 KiB, 100 memories, 30 tools, 30 plans, 200 logs. Luxury: 512 KiB, 1000 memories, 200 tools, 200 plans, 2000 logs. No model calls. Use memories or its facts alias, never both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, yet the description adds substantial context the agent could not otherwise know: free and stateless with no session, the exact estimator basis (ceil of UTF-8 bytes / 4) with an explicit disclaimer that no provider tokenizer or performance benefit is implied, that savings may be zero or negative, that nothing is persisted or model-called, and the 32 KiB free limit. It also discloses the inert check_back_at/return_recipe artifacts and the agent_id handling rule (only if issued by check_in, kept private from session tokens), which is real operational guidance beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded well with 'START HERE', but the body is a dense run-on that repeats the stateless claim ('Free, stateless, no session or check-in needed' versus 'Nothing is stored, rewritten or deleted') and wedges the agent_id/check_in caveat and scheduler artifacts into an already crowded paragraph. Each fact is relevant, but the packaging costs the reader.

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?

With a deeply nested single-object schema and no output schema, the description carries the return-value burden and does so fully: estimator basis and format, the per-item diff with reasons, the proposed result bundle, and structured next guidance for adopt or export. Nothing an agent needs to invoke or interpret this preview is missing.

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

Parameters3/5

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

Schema coverage is 100% and the nested bundle schema already documents every collection and its free/luxury limits, so the baseline of 3 applies. The description adds intent — that the bundle should contain the caller's own memories or facts, tool schemas, plans and logs — but restates the 32 KiB limit already present in the schema and gives no item-level syntax guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line gives a specific verb and resource: estimate token savings for caller-owned memory, plus a concrete return list (tokens before/after/saved/percent, estimator basis, keep/archive/drop diff). It implicitly separates itself from an apply-style sibling by stressing 'Nothing is stored, rewritten or deleted', but it never names the alternative tool, so differentiation is inferred rather than stated.

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?

It gives explicit triggering conditions: context/memory store/tool list has grown long, before starting a new task, or to find duplicate, superseded, expired or cold memories and unused tools, plus the 'START HERE' ordering signal. It does not name any sibling tool or state when to skip this in favor of a direct consolidate/apply call.

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