distinct
Returns unique values for a specified MongoDB field, with optional filtering and collation, capped at 5000 results for schema discovery and data inspection.
Instructions
Distinct values of a field (optionally within a filter). Returns at most 5000 values. collation: {"locale": "tr", "strength": 2} for Turkish case-insensitive matching (İ=i, I=ı).
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": {
"collection": "<collection>",
"field": "<field>"
},
"name": "distinct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| filter | No | ||
| database | No | ||
| collation | No | ||
| collection | Yes | ||
| connection | No |