# Dedup · Pair

`station__algovigilance__dedup-pair` · external (needs EXECUTION_BACKEND_URL configured) · domain `algovigilance` · pv-relevance `pv-core`

Compare two ICSR narratives for similarity. Token-based duplicate detection across adverse event reports. Returns similarity score and duplicate verdict.

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

- `narrative_a` *string* (required) — First ICSR narrative text
- `narrative_b` *string* (required) — Second ICSR narrative text
- `threshold` *string* — Similarity threshold (0–1). Default 0.85.

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__dedup-pair",
    "arguments": {
      "narrative_a": "62yo F on metformin developed lactic acidosis after 3 days.",
      "narrative_b": "Female age 62 taking metformin presented with lactic acidosis 72h post-initiation.",
      "threshold": 0.85
    }
  }
}
```

## Related

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