cosmosdb_list_containers
List all containers in a Cosmos DB database by providing the account and database name. Returns a sorted JSON array of container names, supporting key-based or Azure credential authentication.
Instructions
List all containers in a Cosmos DB database.
Returns a sorted JSON array of container names. The account can be given as a short name or full endpoint URL.
key_env_var: name of the environment variable holding the Cosmos DB account key. If the variable is set, key-based auth is used; otherwise DefaultAzureCredential is used.
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": {
"account": "<account>",
"database": "<database>"
},
"name": "cosmosdb_list_containers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| database | Yes | ||
| key_env_var | No | AZURE_COSMOS_KEY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |