Skip to main content
Glama

Context Diet

context_diet

Context Diet: shrink a packet before it fills your context: drops empty fields, dedupes lists, cuts long strings to a head + sha256 pointer, caps list length, always keeps required fields; reports bytes and approximate tokens saved. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/context-diet, $0.002 via x402.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "packet": "<packet>"
    },
    "name": "context_diet"
  }
}

Input Schema

NameRequiredDescriptionDefault
packetYespacket
requiredNorequired
max_list_itemsNomax list items
max_string_charsNomax string chars

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / max_list_items / description
      Added value: +"max list items"
    • addedInput schema / properties / max_string_chars / description
      Added value: +"max string chars"
    • addedInput schema / properties / packet / description
      Added value: +"packet"
    • addedInput schema / properties / required / description
      Added value: +"required"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), and the description adds genuine behavioral detail: exactly what gets discarded and that savings are reported in bytes and approximate tokens. However, it leaves a critical ambiguity unresolved — whether the drops/truncations mutate the supplied packet or return a shrunk copy — which matters given readOnlyHint=false. It also never explains that the sha256 pointer is lossy/irreversible, so an agent cannot tell whether truncated content can be recovered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded and dense with real specification. The trailing parenthetical about AYNE, the production URL, and $0.002 via x402 is promotional/operational noise that does not help an agent decide or invoke correctly, diluting an otherwise tight definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must cover the return value, and it only says savings are reported in bytes and approximate tokens — not what the returned packet looks like or whether the original is still obtainable. For a lossy transform tool, the irreversibility of the head-plus-hash substitution is a material omission an agent needs before trusting the result.

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 nominally 100%, but the schema descriptions are pure tautologies ("packet" for packet, "required" for required), so they convey no meaning. The description does compensate partially by mapping the knobs to behavior: list length caps, string truncation, and always preserving required fields. It still omits defaults, the expected format of `packet`, and how `required` is expressed (field names vs paths), so the added meaning is real but incomplete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource ("shrink a packet") and enumerates the exact transformations: dropping empty fields, deduping lists, truncating strings to a head plus sha256 pointer, capping list length. That is far more specific than a name restatement. It never names a sibling, though, and the closest conceptual neighbor ("dedupe") is left for the agent to disambiguate on its own.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase "before it fills your context," which suggests calling it as a preprocessing step on oversized payloads. There is no explicit statement of when to prefer this over a plain dedupe or a raw fetch, and no stated limits or conditions where shrinking is inappropriate.

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.

Resources