connect
Establish a connection to a MongoDB cluster by providing a valid connection string in mongodb:// or mongodb+srv:// format.
Instructions
Connect to a MongoDB instance. The config resource captures if the server is already connected to a MongoDB cluster. If the user has configured a connection string or has previously called the connect tool, a connection is already established and there's no need to call this tool unless the user has explicitly requested to switch to a new MongoDB cluster.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionString | Yes | MongoDB connection string (in the mongodb:// or mongodb+srv:// format) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connected | Yes |