mongo_write
Insert, update, or delete MongoDB documents on writable connections, enabling agents to modify data while blocking writes to read-only connections.
Instructions
Write to MongoDB (action: insert|update|delete). Only allowed on writable connections (read_only=false).
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": {
"connection_id": "<connection_id>",
"collection": "<collection>",
"action": "<action>",
"payload": "<payload>"
},
"name": "mongo_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| payload | Yes | ||
| database | No | ||
| collection | Yes | ||
| connection_id | Yes |