mongo_update_many
Update multiple MongoDB documents that match a specified filter. Apply bulk updates to a collection using a JSON filter and update document.
Instructions
Update multiple documents 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>",
"update": "<update>"
},
"name": "mongo_update_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | JSON string filter. | |
| update | Yes | JSON string update document. | |
| upsert | No | ||
| database | No | ||
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |