# Microgram: vigilance-safety-margin

`station__algovigilance__microgram-vigilance-safety-margin` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Calculate safety margin distance d(s) — a weighted composite of four disproportionality metrics (PRR, ROR lower CI, IC025, EB05) and case count. d > 1.0 = clear signal; d > 0.5 = probable signal; d > 0.0 = borderline; d <= 0.0 = below threshold. Use after running PRR/ROR/IC/EBGM to synthesize a single decision metric.

## Agent metadata

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

## Input schema

- `prr` *number* (required) — Proportional Reporting Ratio value (from compute-prr)
- `ror_lower` *number* (required) — ROR lower 95% confidence interval (from compute-ror)
- `ic025` *number* (required) — IC lower credibility interval (IC025, from compute-ic)
- `eb05` *number* (required) — EBGM 5th percentile (EB05, from compute-ebgm)
- `n` *number* (required) — Number of case reports for this drug-event pair

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-vigilance-safety-margin",
    "arguments": {
      "prr": 0,
      "ror_lower": 0,
      "ic025": 0,
      "eb05": 0,
      "n": 0
    }
  }
}
```

## Related

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