Apply Optimization
metrx_apply_optimizationApply one-click optimization recommendations to an agent for validated changes such as token guardrails or model switches. Use only for suggestions marked as one-click to ensure safe updates.
Instructions
Apply a one-click optimization recommendation to an agent. Only works for suggestions marked as "one_click: true". Common optimizations include setting max_tokens limits and switching models. Do NOT use for unvalidated changes — run create_model_experiment first if unsure about impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent to apply the optimization to | |
| optimization_type | Yes | The type of optimization to apply (e.g., "token_guardrails", "model_switch") | |
| payload | No | Override the default optimization payload (advanced) |