# run-mcp-staleness-gate

`station__microgram__run-mcp-staleness-gate` · external (needs EXECUTION_BACKEND_URL configured) · domain `microgram` · pv-relevance `pv-core`

Decide action for stale MCP server binary. Hook computes is_stale (binary_mtime > process_start). Microgram decides action. chains_to: session-velocity (feeds_momentum flag).

> **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

- `is_stale` *boolean* (required) — Input parameter: is_stale
- `build_detected` *boolean* (required) — Input parameter: build_detected
- `staleness_seconds` *integer* (required) — Input parameter: staleness_seconds

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__microgram__run-mcp-staleness-gate",
    "arguments": {
      "is_stale": false,
      "build_detected": false,
      "staleness_seconds": 0
    }
  }
}
```

## Related

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