Skip to main content
Glama

cancel_compaction

Cancels pending compaction or continuation dispatches for a specific job ID, preventing unwanted context compaction. Inspect status afterward to verify cancellation.

Instructions

Cancel pending compaction/continuation dispatches for an exact job ID. Already sent requests cannot be undone. Inspect status afterward.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYes
threadIdYesCurrent CODEX_THREAD_ID; obtain from the shell environment. Never guess or select a different thread.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate the operation is not read-only and not flagged as destructive, but the description adds important behavioral context: only pending dispatches are affected, and sent requests are irreversible. This goes beyond the structured annotations and helps the agent set accurate expectations about side effects.

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

Conciseness5/5

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

Two tightly written sentences with the core action, the critical caveat, and a follow-up instruction. No filler or redundant restatement; the most important scoping information is front-loaded.

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

Completeness4/5

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

For a cancellation tool with two required parameters, no output schema, and clear annotations, the description covers the essential behavior, the limitation about already-sent requests, and the recommended next step of inspecting status. It omits failure modes or return-value details, but these are not critical for correct invocation here.

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?

The schema documents threadId but leaves jobId without a description, so schema coverage is only 50%. The description compensates slightly by saying 'exact job ID,' which reinforces that jobId must precisely identify the target, but it does not add meaningful semantics for threadId or go beyond what the schema already provides.

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

Purpose5/5

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

The description uses a specific verb ('Cancel') and names a precise resource ('pending compaction/continuation dispatches') while scoping it to an exact job ID. This clearly differentiates it from sibling tools like schedule_compaction, probe_compaction, and compaction_status without needing to infer from the tool name alone.

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

Usage Guidelines4/5

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

The description clearly signals this tool is for canceling pending dispatches and explicitly warns that already sent requests cannot be undone, which defines the boundary of when it is effective. It also advises inspecting status afterward, which implies a follow-up with a status tool, though it does not explicitly name alternatives or provide a when-not-to-use condition.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DitriXNew/rekall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server