ai_context_compress
Context compressor — Shrink long text to a token budget for an LLM context window while keeping numbers, dates, names, decisions and deadlines. tokens= sets the target (default 30% of the input), keep= lists terms that must survive. Offline checks report missing numbers, missing keep-terms, names kept and tokens saved; text already within budget is returned unchanged without a model call. Price: $0.008 USDC (Base, via x402).
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": {
"text": "<text>"
},
"name": "ai_context_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | e.g. Hi team, following up on Tuesday's call with Acme Corp. They agreed to a 12-month contract at $48,000, starting January 15, 2027, with net 30 payment terms. Legal still needs to review the data processing addendum by December 10. Thanks, everyone, for all the hard work on this one! |