Skip to main content
Glama

MCP CosmosDB

MIT License

mcp_execute_query

Execute SQL queries directly on a CosmosDB container, specify optional parameters, and control result limits or cross-partition queries for efficient data retrieval.

Instructions

Execute a SQL query against a CosmosDB container

Input Schema

NameRequiredDescriptionDefault
container_idYesThe ID of the container to query
enable_cross_partitionNoWhether to enable cross-partition queries
max_itemsNoMaximum number of items to return
parametersNoOptional parameters for the query as key-value pairs
queryYesThe SQL query to execute

Input Schema (JSON Schema)

{ "properties": { "container_id": { "description": "The ID of the container to query", "type": "string" }, "enable_cross_partition": { "default": true, "description": "Whether to enable cross-partition queries", "type": "boolean" }, "max_items": { "default": 100, "description": "Maximum number of items to return", "type": "number" }, "parameters": { "description": "Optional parameters for the query as key-value pairs", "type": "object" }, "query": { "description": "The SQL query to execute", "type": "string" } }, "required": [ "container_id", "query" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hendrickcastro/MCPCosmosDB'

If you have feedback or need assistance with the MCP directory API, please join our Discord server