find_one
Ambil SATU dokumen pertama yang cocok dengan filter.
Instructions
Ambil SATU dokumen pertama yang cocok dengan filter.
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>"
},
"name": "find_one"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Query filter MongoDB. Contoh: {"status": "aktif", "umur": {"$gt": 25}}. Kirim sebagai objek atau string JSON. Gunakan {} untuk semua dokumen. | |
| database | No | Nama database tujuan. Opsional jika MONGODB_DB sudah diatur. | |
| collection | Yes | Nama koleksi. | |
| projection | No | Proyeksi field yang dikembalikan. Contoh: {"nama": 1, "email": 1, "_id": 0}. |