Skip to main content
Glama

codex_cache_manage

Inspect, reset, or prune persistent workspace cache lanes to reclaim idle capacity and monitor context fill, cache hit rates, and busy state.

Instructions

Inspect, reset, or prune persistent workspace cache lanes (thread_id, context fill %, last-call cache hit %, idle age, busy state).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "codex_cache_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
laneNo
actionNostatus
max_idle_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and largely drops it: reset and prune are destructive, yet nothing says what state is discarded, whether it is recoverable, or what preconditions (busy lanes, permissions) apply. The parenthetical does disclose the status attributes exposed for inspection, which is the one piece of genuine behavioral context.

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

Conciseness4/5

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

A single front-loaded sentence with the verb set first and qualifying detail in a compact parenthetical. Nothing is redundant, though the parenthetical's ambiguity about whether those fields are inputs or outputs slightly hurts clarity.

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

Completeness2/5

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

For a four-parameter tool with zero schema coverage, no annotations, no output schema, and two destructive actions, the definition should explain the parameters, the effect of reset versus prune, and the risk profile. None of that is present, leaving the agent under-informed before a mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description does not compensate. It never explains cwd, lane, action, or max_idle_minutes; the parenthetical fields (thread_id, fill %, hit %, idle age, busy state) read as status outputs rather than the four actual inputs, so an agent must guess what lane or max_idle_minutes mean and how they interact with the chosen action.

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 gives a specific verb set (inspect, reset, prune) against a specific resource (persistent workspace cache lanes), and the parenthetical enumerates the observable lane attributes. It is clearly distinct from the exec/job siblings, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no guidance on when to choose reset versus prune, no indication of the conditions that warrant each action, and no caveats about when not to use it. The action enum names the three modes but the description adds no selection criteria beyond repeating them.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.