query
Execute read-only SQL queries to retrieve data from Waldur instances through the MCP server for integration and management tasks.
Instructions
Run a read-only SQL query
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Implementation Reference
- src/waldur_mcp_server/server.py:54-57 (handler)Handler function for the MCP 'query' tool. Decorated with @mcp.tool(), it accepts an SQL string and executes it via the Waldur API client using api_query.asyncio.@mcp.tool() async def query(sql: str) -> list[Any]: """Run a read-only SQL query""" return await api_query.asyncio(client=client, body=QueryRequest(query=sql))