get_custom_cloud_pricing
Retrieve custom cloud pricing configurations for accurate cost calculations in projects. Input a project ID to access tailored pricing overrides on the MCP Server for Coroot platform.
Instructions
Get custom cloud pricing configuration.
Retrieves any custom cloud pricing overrides for cost calculations.
Args: project_id: Project ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1693-1702 (handler)The MCP tool handler for 'get_custom_cloud_pricing', registered via @mcp.tool(). This thin wrapper calls the implementation function and handles the tool interface.@mcp.tool() async def get_custom_cloud_pricing(project_id: str) -> dict[str, Any]: """Get custom cloud pricing configuration. Retrieves any custom cloud pricing overrides for cost calculations. Args: project_id: Project ID """ return await get_custom_cloud_pricing_impl(project_id) # type: ignore[no-any-return]
- src/mcp_coroot/client.py:1309-1322 (helper)Core helper method in CorootClient class that executes the actual HTTP GET request to the Coroot API endpoint for custom cloud pricing configuration.async def get_custom_cloud_pricing(self, project_id: str) -> dict[str, Any]: """Get custom cloud pricing configuration. Args: project_id: Project ID. Returns: Custom pricing configuration. """ response = await self._request( "GET", f"/api/project/{project_id}/custom_cloud_pricing" ) data: dict[str, Any] = response.json() return data
- src/mcp_coroot/server.py:1683-1691 (helper)Implementation wrapper function that calls the client helper, adds success wrapper, and is decorated with error handler.async def get_custom_cloud_pricing_impl(project_id: str) -> dict[str, Any]: """Get custom cloud pricing.""" client = get_client() pricing = await client.get_custom_cloud_pricing(project_id) return { "success": True, "pricing": pricing, }