ecp_mongo_assign_user_to_database
Assign a MongoDB user readWrite access to a database in your hosting account. Requires confirmation as this security-sensitive grant applies to the entire database.
Instructions
Grant a MongoDB user readWrite access to a database (both must already belong to this account). MongoDB only supports whole-database readWrite here - no read-only or per-collection grants like MySQL/Postgres. Security-sensitive - review carefully before confirming.
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": {
"db_name": "<db_name>",
"db_username": "<db_username>",
"confirm": "<confirm>"
},
"name": "ecp_mongo_assign_user_to_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| db_name | Yes | ||
| db_username | Yes |