find_duplicates
Identify duplicate value groups across one or more table columns, ignoring NULLs, and return counts with a sample ROWID for groups meeting a minimum occurrence threshold.
Instructions
Find duplicate value groups in one or more columns of a table (excluding NULLs). Groups at or above minCount (default 2) come back with a COUNT and a sample ROWID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>",
"columns": "<columns>"
},
"name": "find_duplicates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name. | |
| schema | No | Schema (owner) of the table. Optional — defaults to the server's current schema; omit rather than guess. | |
| columns | Yes | Columns to compare together. | |
| minCount | No | Minimum occurrences of a group. Defaults to 2. |