Skip to main content
Glama

get_custom_cloud_pricing

Retrieve custom cloud pricing configurations for accurate cost calculations in your project. This tool fetches pricing overrides to ensure precise infrastructure cost analysis.

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

  • MCP tool handler function that wraps the implementation and provides the tool interface with documentation.
    @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]
  • Helper implementation in server that calls the client method and formats the response.
    @handle_errors 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, }
  • Core client method that performs the HTTP request to the Coroot API to fetch custom cloud pricing data.
    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
  • MCP tool registration decorator applied to the handler function.
    @mcp.tool()

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