run_command
Executes MongoDB database commands such as serverStatus, usersInfo, createUser, collMod, or explain against a chosen connection and database.
Instructions
Run any database command (like db.runCommand), e.g. {"serverStatus": 1}, {"usersInfo": 1}, {"createUser": "app", "pwd": "...", "roles": [...]}, {"collMod": "orders", "validator": {...}}, {"explain": {"find": "orders", "filter": {...}}, "verbosity": "executionStats"}. database defaults to the profile's database (use "admin" for server-level commands).
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": {
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| database | No | ||
| connection | No |