# compute-therapeutic-window

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

Compute therapeutic window from efficacy and toxicity dose-response curves using Hill equation integration. Returns the benefit-over-risk AUC ratio across a dose range. Wider window = safer drug.

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

- `efficacy` *object* (required) — Efficacy Hill curve: {k_half: EC50 dose, n_hill: Hill coefficient}
- `toxicity` *object* (required) — Toxicity Hill curve: {k_half: TC50 dose, n_hill: Hill coefficient}
- `bounds` *object* — Optional dose range: {dose_min, dose_max, intervals}. Defaults to 0.1-100 with 1000 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-therapeutic-window",
    "arguments": {
      "efficacy": {},
      "toxicity": {}
    }
  }
}
```

## Related

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