Azure Cosmos Py
Automates Cosmos DB tasks in Azure using Python, streamlining database management for claudedjale users.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add claudedjale-azure-cosmos-py npx -- -y @trustedskills/claudedjale-azure-cosmos-py
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"claudedjale-azure-cosmos-py": {
"command": "npx",
"args": [
"-y",
"@trustedskills/claudedjale-azure-cosmos-py"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with Azure Cosmos DB using Python. It facilitates creating, reading, updating, and deleting documents within a Cosmos DB container. The skill leverages the azure-cosmos library to provide a programmatic interface for managing data in this NoSQL database service.
When to use it
- Data Migration: Automate the process of moving data between different Cosmos DB accounts or containers.
- Inventory Management: Build an agent that can update product quantities and details stored in a Cosmos DB inventory system.
- Log Analysis: Retrieve and analyze log data stored within Cosmos DB for troubleshooting or reporting purposes.
- Content Management: Create an agent to manage website content, storing articles and media assets in Cosmos DB.
Key capabilities
- Connects to Azure Cosmos DB accounts.
- Creates new containers.
- Reads documents from a container.
- Updates existing documents within a container.
- Deletes documents from a container.
Example prompts
- "Retrieve all orders with a status of 'pending' from the 'orders' container."
- "Create a new document in the 'products' container with these details: {name: 'Widget', price: 19.99}.”
- “Update the ‘quantity’ field to 5 for product ID ‘XYZ-123’ in the ‘inventory’ container.”
Tips & gotchas
- Requires an Azure subscription and Cosmos DB account with appropriate access credentials.
- Familiarity with Python is helpful for understanding and debugging any issues that may arise.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.