delete_documents
Delete matching MongoDB documents by filter—remove the first match or all matches when many=true. Requires confirm_all=true for empty filters to prevent accidental bulk deletion.
Instructions
Delete the first matching document (many=false) or all matching documents (many=true). An empty filter requires confirm_all=true.
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>",
"filter": "<filter>"
},
"name": "delete_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| many | No | ||
| filter | Yes | ||
| database | No | ||
| collation | No | ||
| collection | Yes | ||
| connection | No | ||
| confirm_all | No |