Skip to main content
Glama
smurfy92

openclaw-control-mcp

by smurfy92

openclaw_sessions_compact

Reduce session history size by triggering a compaction snapshot while keeping the session running.

Instructions

Trigger a compaction of a session's history (creates a new compaction snapshot, keeps the session live). Wraps sessions.compact.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSession id. Most session.* methods accept the `sessionId` (UUID); a few accept the composite `key` (e.g. 'agent:main:cron:<id>'). When unsure, try the UUID first; if rejected with NOT_FOUND, retry with the key from openclaw_sessions_list.
instanceNoOptional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list.
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that compaction creates a snapshot and keeps the session live, which is key. However, it does not mention potential side effects (e.g., performance impact), error conditions, or whether the operation is asynchronous.

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?

The description is very concise—a single sentence with a parenthetical and a mention of the underlying API. Every part is relevant, though slightly more structure (e.g., a separate section for behavior) could improve readability without added length.

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?

For a simple trigger action, the description is adequate but lacks details on return values (e.g., compaction ID), error handling, or prerequisites (e.g., session must be active). Given the richness of sibling compaction tools, more context would be beneficial.

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 description coverage is 100%, so baseline is 3. The description adds no further meaning to the parameters 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 clearly states the verb 'Trigger' and the resource 'compaction of a session's history', and distinguishes from sibling compaction tools (list, get, restore, branch) by specifying it creates a new snapshot while keeping the session live.

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?

The description implies usage for creating a new compaction but offers no explicit guidance on when to use this versus alternatives like openclaw_sessions_compaction_restore or openclaw_sessions_compaction_branch. No when-not or prerequisite information is provided.

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

Install Server

Other Tools

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/smurfy92/openclaw-control-mcp'

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