Context Lens
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 |
|---|---|
| show_context_usageC | Open the Context Tally panel showing context window usage, category breakdown, and cache hit rates. |
| refresh_context_usageB | Return a fresh Context Tally snapshot, or a lightweight unchanged marker when the revision matches. |
| build_handoff_summaryB | Build a redacted, ready-to-paste Markdown handoff of the current conversation on explicit user request. |
| get_context_diagnosticsC | Return lazy data for the selected conversation: category drill-down, prompt-cache drops, the What-If savings catalog, an efficiency verdict, or an anonymized environment dump. |
| get_corpus_overviewB | Return the on-demand overview of every conversation database: totals, models and index state. App-only and never polled. |
| save_view_settingsC | Persist Context Tally settings (language, surfaces, overrides, eager MCP servers, pinned chat) and return a fresh snapshot. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Context Tally View | Interactive context window breakdown and cache hit rate view. |
TDQS
Scored across 6 tools
Most tools are cleanly separated by resource and action: viewing usage, refreshing usage, diagnostics, corpus overview, handoff export, and settings persistence. The main risk is show_context_usage vs refresh_context_usage, which both concern the same Context Tally panel and could be misselected, and get_context_diagnostics is a fairly broad multi-purpose entry point (drill-down, cache drops, what-if catalog, verdict, env dump) selected by a mode parameter.
Every tool follows the same snake_case verb_noun convention (show_, refresh_, build_, get_, save_) with a clear resource qualifier. Verb choices are semantically meaningful and predictable, so an agent can infer sibling tools by analogy.
Six tools is well-scoped for a context-usage inspection server; each tool covers a distinct surface (view, refresh, diagnostics, corpus, handoff, settings) with no filler. Nothing appears redundant or missing at the count level.
The surface covers the full inspection lifecycle: live panel, refreshed snapshots, deep diagnostics, cross-conversation corpus, handoff export, and settings write. The only minor gaps are no explicit reset/clear-settings or settings-read operation, and no explicit close/hide for the panel, which agents can work around via the snapshot-returning tools.