# compute-qbr

`station__benefit-risk__compute-qbr` · external (needs EXECUTION_BACKEND_URL configured) · domain `benefit-risk` · pv-relevance `pv-core`

Compute full statistical benefit-risk ratio from contingency tables using disproportionality analysis (PRR/ROR/IC/EBGM). Supports simple, Bayesian, composite, and therapeutic window forms. Use with real FAERS contingency data.

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

- `method` *string* (required) — Disproportionality method: prr, ror, ic, or ebgm
- `benefit_tables` *array* (required) — Benefit contingency tables, each with {a, b, c, d} counts
- `risk_tables` *array* (required) — Risk contingency tables, each with {a, b, c, d} counts
- `benefit_weights` *array* — Optional weights for benefit tables [{value, confidence}]
- `risk_weights` *array* — Optional weights for risk tables [{value, confidence}]
- `hill_efficacy` *object* — Optional Hill curve params for efficacy {k_half, n_hill}
- `hill_toxicity` *object* — Optional Hill curve params for toxicity {k_half, n_hill}
- `integration_bounds` *object* — Optional dose range for therapeutic window {dose_min, dose_max, intervals}

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__benefit-risk__compute-qbr",
    "arguments": {
      "method": "",
      "benefit_tables": [],
      "risk_tables": []
    }
  }
}
```

## Related

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