advise_context_window
Analyze token usage against model context window and get recommendations on which parts to trim to reduce API costs.
Instructions
Analyze current token usage vs model context window and recommend what to trim. Use this meta-tool to know WHERE to apply compress_context, prune_conversation, or other tokensaver tools for maximum effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name (e.g. "claude-sonnet-4", "gpt-4o", "gemini-1.5-pro"). | |
| current_tokens | Yes | Current total tokens being sent (use count_tokens first). | |
| messages | No | Optional conversation history for per-turn breakdown. | |
| target_utilization | No | Fraction of context window to target (default 0.75 = 75%). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||