delete_document
Delete a document from a collection using its MongoDB object ID. Remove a single record without impacting other data.
Instructions
Delete a document from a 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_name": "<collection_name>",
"document_id": "<document_id>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The MongoDB object ID of the document to delete | |
| collection_name | Yes | Name of the collection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||