Skip to main content
Glama

Pre/Post Context Compaction Information Retention Verifier

verify_context_compaction_fidelity
Read-onlyIdempotent

Audits a compacted conversation summary against the original full context to detect dropped user constraints, lost file paths, altered numbers, or missing pending tasks. Use when verifying that an LLM context-compaction summary retained all task-critical facts before truncating history; for generating a new executive summary from a raw technical document, use summarize_technical_document instead. Read-only edge call (32 KB, 60 RPM): accepts 'original_context' ('compacted_summary' defaults to 'standard'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

Input Schema

NameRequiredDescriptionDefault
audit_focusNoEntity class prioritized during retention scoring; defaults to 'constraints_paths_and_numbers' when omitted.
original_contextYesFull pre-compaction conversation history or task log.
compacted_summaryYesCandidate compacted summary to audit for dropped constraints or entities.

Output Schema

NameRequiredDescriptionDefault
safe_to_resumeYesTrue when retention_score >= 0.90 and zero critical constraints were lost.
retention_scoreYesInformation preservation score from 0.0 to 1.0.
preserved_entitiesYesCritical constraints, paths, and numbers verified present in the summary.
missing_critical_entitiesYesImportant entities or constraints dropped during compaction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, and non-open-world behavior. The description adds useful operational context beyond annotations, including a 32 KB payload note, 60 RPM rate limit, demo/L402 access paths, and an HTTP 400 invalid-input behavior.

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?

The description is front-loaded and compact, with no wasted sentences. The final operational sentence is dense and slightly awkward, mixing payload size, rate limit, parameters, auth options, and error behavior into one clause.

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 output schema, full schema description coverage, and annotations, the description provides enough context for an agent to understand the task, when to select it, and key operational constraints. The main remaining issue is the curious 'defaults to standard' phrasing, but overall completeness is strong.

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%, including enum documentation for audit_focus, so the schema already carries most parameter meaning. The description adds little beyond mentioning original_context and compacted_summary, and the parenthetical saying compacted_summary defaults to 'standard' is confusing because the schema marks it as required with no default.

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 and resource: auditing a compacted summary against the original full context for dropped constraints, file paths, altered numbers, and pending tasks. It also distinguishes the tool from summarize_technical_document, so an agent can separate this verification task from summary generation.

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

Usage Guidelines5/5

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

It explicitly says when to use it: verifying that an LLM context-compaction summary retained task-critical facts before truncating history. It also names the alternative summarize_technical_document for generating a new executive summary from a raw document.

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.