conversation_check_compaction
Check if a conversation requires compaction to fit within a specified model context limit.
Instructions
Check if conversation needs compaction for given model context limit
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": {
"session_id": "<session_id>",
"model_max_tokens": "<model_max_tokens>"
},
"name": "conversation_check_compaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session identifier | |
| model_max_tokens | Yes | Model context window size (e.g., 4096) | |
| additional_tokens | No | Additional tokens to be added (default: 0) |