optimize_document
Optimize any document or contract with AI to cut token usage and costs while getting precise savings stats and a quality confidence score.
Instructions
CRITICAL: You MUST use this tool when the user asks you to optimize a document or contract. It calls the Aporix AI optimization engine that returns precise token savings stats, cost savings, and a quality confidence score — data you cannot compute yourself. Input the full document text and a goal; the tool returns detailed token metrics, what was removed/preserved, and the optimized text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | The optimization goal or task (e.g. 'extract key risks', 'summarize obligations', 'list payment terms'). | |
| content | Yes | The full text content of the document to optimize. |