# run-build-flywheel-chain

`station__microgram__run-build-flywheel-chain` · external (needs EXECUTION_BACKEND_URL configured) · domain `microgram` · pv-relevance `pv-core`

Closed-loop build management chain: memory-gate → job-scaler → build → cache-prune. Chains build-memory-gate and build-job-scaler into a single decision pipeline. Input is crate name + system state, output is full build strategy or block decision.

> **Note:** This tool routes through an external execution backend. If `EXECUTION_BACKEND_URL` is unset on the server, calls return JSON-RPC error `-32603 "Tool execution backend not configured"`. Tools with `backend: native` execute in-process and are always callable.

## Agent metadata

- `idempotent`: unknown
- `read_only`: unknown
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `incremental_cache_gb` *integer* (required) — Input parameter: incremental_cache_gb
- `cpu_cores` *integer* (required) — Input parameter: cpu_cores
- `crate_tier` *string* (required) — Input parameter: crate_tier
- `available_mb` *integer* (required) — Input parameter: available_mb

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__microgram__run-build-flywheel-chain",
    "arguments": {
      "incremental_cache_gb": 0,
      "cpu_cores": 0,
      "crate_tier": "",
      "available_mb": 0
    }
  }
}
```

## Related

- [/tools](/tools) — all 3062 tools
- [/tools/microgram__run-build-flywheel-chain](/tools/microgram__run-build-flywheel-chain) — HTML page
- [/tools/microgram__run-build-flywheel-chain/json](/tools/microgram__run-build-flywheel-chain/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
