replace_document
Replace the first document matching a filter with an entirely new document, without update operators. Use it for full-document replacement rather than field-level updates.
Instructions
Replace the first document matching the filter with a whole new document (no update operators).
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>",
"replacement": "<replacement>"
},
"name": "replace_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | ||
| upsert | No | ||
| database | No | ||
| collection | Yes | ||
| connection | No | ||
| replacement | Yes |