# run-trajectory-centroid

`station__microgram__run-trajectory-centroid` · external (needs EXECUTION_BACKEND_URL configured) · domain `microgram` · pv-relevance `pv-core`

ALG-2025-022: Trajectory Centroid Calculator. Gates pre-computed safety profile centroid values to classify trajectory shape. centroid_velocity = centroid_current - centroid_previous (positive = worsening). centroid_acceleration = rate of velocity change (positive = speeding up). Prefixed with centroid_ to avoid collision with signal-trend-detector velocity output in chains.

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

- `centroid_velocity` *number* (required) — Input parameter: centroid_velocity
- `centroid_current` *number* (required) — Input parameter: centroid_current
- `centroid_previous` *number* (required) — Input parameter: centroid_previous
- `centroid_delta` *number* (required) — Input parameter: centroid_delta
- `centroid_acceleration` *number* (required) — Input parameter: centroid_acceleration

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__microgram__run-trajectory-centroid",
    "arguments": {
      "centroid_velocity": 0,
      "centroid_current": 0,
      "centroid_previous": 0,
      "centroid_delta": 0,
      "centroid_acceleration": 0
    }
  }
}
```

## Related

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