# Microgram: autopilot-pharma-sweep

`station__algovigilance__microgram-autopilot-pharma-sweep` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Autopilot decision gate for pharmaceutical company monitoring sweep. Takes company FAERS metrics and determines: alert level and action. Uses absolute thresholds (microgram trees cannot compute ratios between two variables). For delta-based detection, compute ratios upstream in the sweep script and pass as pre-computed inputs (death_ratio, report_delta_pct).

## Agent metadata

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

## Input schema

- `total_reports` *number* (required) — Input variable total_reports
- `death_count` *number* — Input variable death_count
- `new_signals` *number* — Count of reactions with PRR > 2 AND chi2 > 4 from upstream analysis
- `death_ratio` *number* — Pre-computed death_count/prior_deaths ratio from sweep script. >1.2 = spike.
- `report_delta_pct` *number* — Pre-computed (total - prior) / prior * 100 from sweep script. >10 = surge.

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-autopilot-pharma-sweep",
    "arguments": {
      "total_reports": 0
    }
  }
}
```

## Related

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