Skip to main content
Glama

Server Details

A lightweight MCP tool for lossless prompt cleanup. optimize_context collapses redundant whitespace outside fenced code and returns cleaned text with approximate savings estimates. Deterministic processing with no LLM calls, account, or prompt storage; the agent decides whether to use the result. Free beta.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A3.9/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct roles: estimate_context_savings previews savings without transforming text, while optimize_context performs the paid transformation. The descriptions explicitly connect them in a workflow, so an agent can easily choose the right tool.

Naming Consistency5/5

Both names follow a consistent snake_case verb_noun pattern: estimate_context_savings and optimize_context. The convention is predictable and readable.

Tool Count4/5

Two tools is slightly below the typical 3-15 range, but the server's purpose is narrow and each tool earns its place. A preview/perform pair is reasonable for this domain.

Completeness4/5

The core lifecycle of estimating savings and applying the optimization is covered. Minor gaps exist around optional configuration or diff inspection, but the primary workflow has no dead end.

Available Tools

2 tools
estimate_context_savingsAInspect

Preview approximate character and token savings from ContextTrim without returning a transformed prompt.

Inputs: context (required).

optimize_contextAInspect

Paid tool: for $0.001 USDC on Base, losslessly reduce redundant whitespace in prompt/context text, preserving words and fenced code. Returns cleaned text and approximate token counts. Call only when estimated savings are useful.

Inputs: context (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources