Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • 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]
  • 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
  • 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, }

Latest Blog Posts

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/jamesbrink/mcp-coroot'

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