ai_prompt_compress
AI prompt compressor — Shrink an LLM prompt to cut token cost while keeping every instruction, constraint, placeholder and number. Returns the compressed prompt, token counts before/after and % saved, a SAFE/REVIEW verdict that flags any number, {placeholder} or keep= term lost by the rewrite, and a lossless offline cleanup version as a fallback. prompt= required; optional target= (0.2-0.9 length ratio, default 0.5) and keep= (comma-separated terms that must stay). Price: $0.006 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": {
"prompt": "<prompt>"
},
"name": "ai_prompt_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | e.g. I would like you to please summarize the following {doc} in order to help me. Make sure to use exactly 3 bullet points and keep it under 50 words. |