mongo_delete_one
Delete a single document from a MongoDB collection by applying a JSON filter. Removes the first matching document.
Instructions
Delete a single document matching filter in MongoDB. Blocked when readOnly mode is enabled.
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": "mongo_delete_one"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | JSON string filter. | |
| database | No | ||
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |