distinct
Retrieve unique field values from a MongoDB collection with a required filter and indicate whether the limited results were truncated.
Instructions
Retorna valores distintos limitados e informa se a resposta foi truncada.
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": {
"database": "<database>",
"collection": "<collection>",
"filter": "<filter>",
"field": "<field>"
},
"name": "distinct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| filter | Yes | Filtro obrigatório. Use campos, $eq, $ne, $gt, $gte, $lt, $lte, $in, $and e $or. | |
| database | Yes | ||
| collection | Yes |