Optimization Engine
Enforce MCP/cost and performance optimization policies with optimize_* tools.
What you will learn
- optimize_plan
- optimize_enforce
- Tie to budgets
Prerequisites
Surface
| MCP | optimize_get · optimize_validate · optimize_enforce · optimize_plan |
|---|---|
| Config | .ags/optimization.yml |
What this feature does
Optimization Engine turns efficiency + performance signals into enforceable optimization plans (tool batching, cache, budget reallocations).
How to call it
Call these MCP tools through your AGS / tower-gov host — optimize_get, optimize_validate, optimize_enforce, optimize_plan.. Prefer scan/get before validate/diff, and enforce only when the change set is ready.
- optimize_get
- optimize_plan
- Apply changes
- optimize_enforce
{
/* Example MCP call — fill args from schema_get / docs */
"tool": "optimize_get",
"arguments": {}
}What success looks like
Plan applied
optimize_enforce ok
Common failure modes
Optimize without efficiency baseline
Plan conflicts with testing_enforce
Ignoring optimize_validate warnings