prompt-compressor-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| compress_promptA | Compress a prompt, system prompt, or context block to use fewer tokens, using deterministic rule-based algorithms (no LLM call). Template variables like {{name}} and {var} are preserved. Returns the compressed text and token stats. |
| compress_fileA | Read a local text file (prompt, docs, logs, JSON, code) and return a compressed version with token stats. Does not modify the file. |
| compare_levelsA | Run every risk level on the same text and report token savings for each, so you can pick the right trade-off. |
| estimate_tokensA | Estimate the token count of a text (fast heuristic, no tokenizer download). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| levels | Which algorithms run at each risk level |
TDQS
Scored across 4 tools
Each tool has a distinct input mode (raw text vs. file path) and a distinct action (compress, compare, estimate), so misselection is unlikely. The only mild overlap is that estimate_tokens returns token counts that the compress tools also report, but the descriptions make the fast-heuristic-only purpose clear.
All four names use snake_case with a verb_noun pattern (compress_prompt, compress_file, compare_levels, estimate_tokens). The two compress_* tools share a prefix that correctly signals a shared operation with different targets.
Four tools is well-scoped for a narrow prompt-compression utility: text compression, file compression, level comparison, and token estimation. Each tool covers a genuinely different need with no filler.
The core lifecycle (estimate cost, compress input, compress file, tune the risk/savings trade-off) is fully covered with no dead ends. Minor gaps remain around batch/directory processing and a way to inspect or restore what was changed, but agents can work around these with repeated calls.