# Microgram: motor-fault-detector

`station__algovigilance__microgram-motor-fault-detector` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Detects motor/actuator faults: overcurrent, overtemp, stall, encoder loss, phase imbalance. Routes to protection action. Safety-critical — false negatives kill motors, false positives lose a limb.

## Agent metadata

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

## Input schema

- `phase_current_a` *number* (required) — RMS phase current in amps
- `rated_current_a` *number* — Motor rated continuous current (default 20A)
- `winding_temp_c` *number* — Motor winding temperature in Celsius
- `rpm` *number* — Current motor speed in RPM
- `commanded_rpm` *number* — Commanded target RPM
- `encoder_valid` *boolean* — Whether encoder feedback is present and valid
- `phase_balance_pct` *number* — Phase current balance (100% = perfect, <85% = imbalance)

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-motor-fault-detector",
    "arguments": {
      "phase_current_a": 0
    }
  }
}
```

## Related

- [/tools](/tools) — all 7718 tools
- [/tools/algovigilance__microgram-motor-fault-detector](/tools/algovigilance__microgram-motor-fault-detector) — HTML page
- [/tools/algovigilance__microgram-motor-fault-detector/json](/tools/algovigilance__microgram-motor-fault-detector/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
