# run-duplicate-gate

`station__microgram__run-duplicate-gate` · external (needs EXECUTION_BACKEND_URL configured) · domain `microgram` · pv-relevance `pv-core`

Duplicate case detection: classifies case pairs as CONFIRMED/PROBABLE/POSSIBLE/UNLIKELY duplicate based on matching criteria and time window

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

- `same_drug` *boolean* (required) — Input parameter: same_drug
- `same_patient` *boolean* (required) — Input parameter: same_patient
- `time_window_days` *integer* (required) — Input parameter: time_window_days
- `same_event` *boolean* (required) — Input parameter: same_event
- `same_reporter` *boolean* (required) — Input parameter: same_reporter

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__microgram__run-duplicate-gate",
    "arguments": {
      "same_drug": false,
      "same_patient": false,
      "time_window_days": 0,
      "same_event": false,
      "same_reporter": false
    }
  }
}
```

## Related

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