compute-prr
Compute Proportional Reporting Ratio (PRR) for a drug-event pair from a 2x2 contingency table. PRR > 2 with chi-squared > 4 and N >= 3 indicates a signal.
Taxonomy
Linnaean classification joined from the algovigilance taxonomy index via the parent config's rank.
| Rank | Value |
|---|---|
| domain | Substrata |
| kingdom | Constructa |
| phylum | Configa |
| class | station-config |
| order | calculation |
| family | mcp-tool-config |
Characteristics:
- substrate:
config - domain:
pv - lifecycle:
continuous - authority:
read - compounding:
producer - io:
agent-request→tool-response
Input schema
aintegerrequired — Drug + event count (cell a of 2x2 table)bintegerrequired — Drug + no-event count (cell b)cintegerrequired — No-drug + event count (cell c)dintegerrequired — No-drug + no-event count (cell d)tableobject — Optional alternate form: nest {a,b,c,d} inside a `table` key.
Example call
POST /api/mcp
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "station__calculate__compute-prr",
"arguments": {
"a": 0,
"b": 0,
"c": 0,
"d": 0
}
}
}How to invoke from a client
From any MCP-aware client, add https://algovigilance.com/api/mcp as an MCP server, then call this tool by name. From a raw HTTP client, send the JSON-RPC body above to /api/mcp.
Agent-friendly formats
Working inside an AI assistant? Use the Copy for AI button at the top of this page (or view the raw Markdown) to paste a clean, token-budgeted version of this tool's contract into your conversation.
Related
- All tools (3062 live)
- /api/mcp — endpoint
- /AGENTS.md — agent guide
- /tools/calculate__compute-prr/raw.md — this page's Markdown twin