# Microgram: edit-distance-batch

`station__algovigilance__microgram-edit-distance-batch` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Compare a query string against multiple candidates. Returns ranked matches by similarity with optional threshold and limit filters. Ideal for fuzzy search over drug names or ADR terms.

## Agent metadata

- `idempotent`: true
- `read_only`: true
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `query` *string* (required) — Query string to match against candidates
- `candidates` *object* (required) — Array of candidate strings to compare
- `limit` *number* — Maximum results to return
- `min_similarity` *number* — Minimum similarity threshold (0-1)
- `algorithm` *string* — Algorithm: levenshtein (default), damerau, lcs

## Example call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-edit-distance-batch",
    "arguments": {
      "query": "",
      "candidates": {}
    }
  }
}
```

## Related

- [/tools](/tools) — all 7718 tools
- [/tools/algovigilance__microgram-edit-distance-batch](/tools/algovigilance__microgram-edit-distance-batch) — HTML page
- [/tools/algovigilance__microgram-edit-distance-batch/json](/tools/algovigilance__microgram-edit-distance-batch/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
