Docs menu

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

MCPoptimize_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.

  1. optimize_get
  2. optimize_plan
  3. Apply changes
  4. optimize_enforce
MCP: optimize_enforce json
{
  /* 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

Related reference

AGS documentation