Skip to main content
Glama

schedule_compaction

After user approval, schedule a conversation compaction using a customizable handoff that keeps important facts, discards redundant history, and optionally continues the authorized task once.

Instructions

Schedule ONE compaction after this answer. Only when the user authorizes compaction. Optional handoff describes what to keep/summarize and is saved exactly in a per-job file. resume:true explicitly requests ONE subsequent turn with that handoff and nextStep; use only for authorized continuation. Cancels on observed new user input or a stopped turn. Return the handoff in context before finishing. Compaction prompt itself is not overridden. Check status later; no automatic retries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handoffNo
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.7/5.0
Behavior5/5

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

The description richly discloses behavior beyond the minimal annotations: exactly one compaction is scheduled, handoff is saved verbatim to a per-job file, the schedule cancels on new user input or a stopped turn, the compaction prompt is not overridden, and there are no automatic retries. These are critical operational details the agent could not infer from annotations alone.

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?

The description is compact and front-loaded: the primary action and authorization requirement appear first, followed by handoff/resume semantics, cancellation behavior, and status-check guidance. Every sentence carries operational meaning with no filler or redundancy.

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

Completeness5/5

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

For a scheduling tool with no output schema, the description covers the essential operational contract: when to call it, what it schedules, how handoff works, resumption semantics, cancellation, status checking, and absence of retries. The sibling tools for probing/status/cancellation fill the remaining workflow context. Nothing critical appears missing.

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

Parameters4/5

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

With 50% schema coverage, the description compensates meaningfully by explaining handoff persistence, the one-turn resume behavior, and the fact that the compaction prompt is not overridden. The schema already documents threadId and handoff fields well, so the description adds selective, high-value context rather than repeating schema text. It does not fully elaborate on all parameter edge cases, hence not a 5.

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 opens with a specific verb and resource: 'Schedule ONE compaction after this answer.' It clearly differentiates from sibling tools (probe_compaction, compaction_status, cancel_compaction) by focusing on scheduling rather than probing, checking, or canceling. The scope and constraints are unambiguous.

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 states the key precondition: 'Only when the user authorizes compaction.' It also restricts resume:true to authorized continuation and notes cancellation conditions. It does not explicitly name sibling tools or provide when-not-to-use comparisons, but the context is strong enough to guide selection.

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