distinct
Retrieve unique values for a specified field in a MongoDB collection, optionally filtered by a query.
Instructions
Get distinct values for a field in a MongoDB collection
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 | Field to get distinct values for | |
| filter | No | MongoDB filter query | |
| collection | Yes | Collection name |