omlx-prompt-shrink
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OMLX_SHRINK_MODEL | No | Model name to summarise with; empty disables the model mode. | |
| OMLX_SHRINK_API_KEY | No | Bearer token, if the server needs one. | |
| OMLX_SHRINK_TIMEOUT | No | Summariser request timeout, in seconds. | 180 |
| OMLX_SHRINK_BASE_URL | No | OpenAI-compatible base URL used by compact_context when base_url is not given. | http://127.0.0.1:8000/v1 |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| estimate_contextB | Estimate the current context size in tokens before sending it to the model. Example call:: |
| trim_contextA | Trim the oldest messages when the estimated context exceeds the model limit. Example call:: |
| compact_contextA | Replace the oldest messages with a summary instead of dropping them. The summary comes from Example call:: |
| describe_configA | Report the resolved configuration without changing anything. Shows the context window every tool will use and where it came from:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The tools target distinct operations: measuring context, reporting config, trimming messages, and compacting via summary. Trim and compact both reduce context and share similar parameters, but their descriptions clearly distinguish dropping oldest messages from replacing them with a summary.
All four tools follow a consistent snake_case verb_noun pattern: estimate_context, describe_config, compact_context, trim_context. The naming is predictable and readable.
Four tools are well-scoped for a context-management server, with each tool covering a distinct operation. There is no obvious bloat or missing need for additional tools.
The surface covers the full context-shrinking workflow: estimating size, trimming, compacting with summaries, and reporting resolved configuration. No obvious lifecycle operation is missing for the stated purpose.