optimize_workload
Optimise a multi-task LLM workload by assigning the cheapest qualifying model to each task instead of running everything through one model. Takes a list of workloads (task type + monthly volume + optional quality floor and capability requirements) and returns a per-task model allocation, the total monthly cost, and the saving versus the best single-model deployment. If a monthly budget is given, leftover headroom is spent on the most cost-efficient quality upgrades. Use when the user asks how to cut LLM spend across several task types, or whether tiered model routing is worth it. Pass client (e.g. 'claude_code', 'cursor', 'github_copilot', 'cline') so the answer is restricted to models that tool can run; omit it and the hosted server tries to infer it from the MCP handshake, otherwise every priceable model is considered. An explicit client always wins. Recognised clients: claude_code, claude_desktop, cursor, github_copilot, windsurf, cline, continue, zed, jetbrains_ai, gemini_cli, codex_cli, aider, amazon_q, chatgpt_desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | Your MCP client / coding tool, so only models it can run are considered. Recognised: claude_code, claude_desktop, cursor, github_copilot, windsurf, cline, continue, zed, jetbrains_ai, gemini_cli, codex_cli, aider, amazon_q, chatgpt_desktop. Case- and separator-insensitive ('Claude Code' = claude_code). Order: explicit client > legacy ide_context > client inferred from the MCP handshake (hosted server, best effort) > none. Unknown names return an unfiltered result plus a note. | |
| workloads | Yes | One entry per task type in the workload mix | |
| min_quality_score | No | Global quality floor (0-100) applied to every workload | |
| monthly_budget_usd | No | Total monthly budget in USD. Leftover headroom is spent on the most cost-efficient quality upgrades. |