mongo_list_collections
Lists all collections in a MongoDB database. Provide database name and optional connection ID to retrieve the list.
Instructions
List all collections in a MongoDB database.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mongo_list_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Database name. Defaults to connection defaultDatabase. | |
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |