Skip to main content
Glama

update_custom_cloud_pricing

Set custom pricing for cloud resources to override default costs in Coroot monitoring projects.

Instructions

Update custom cloud pricing configuration.

Sets custom pricing for cloud resources to override default pricing.

Args: project_id: Project ID pricing: Custom pricing configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
pricingYes

Implementation Reference

  • MCP tool handler function decorated with @mcp.tool(), which registers it and defines input schema via type hints and docstring. Calls internal impl.
    @mcp.tool() async def update_custom_cloud_pricing( project_id: str, pricing: dict[str, Any] ) -> dict[str, Any]: """Update custom cloud pricing configuration. Sets custom pricing for cloud resources to override default pricing. Args: project_id: Project ID pricing: Custom pricing configuration """ return await update_custom_cloud_pricing_impl(project_id, pricing) # type: ignore[no-any-return]
  • Internal helper implementation that invokes the CorootClient method and formats the standardized error/success response.
    @handle_errors async def update_custom_cloud_pricing_impl( project_id: str, pricing: dict[str, Any] ) -> dict[str, Any]: """Update custom cloud pricing.""" client = get_client() result = await client.update_custom_cloud_pricing(project_id, pricing) return { "success": True, "message": "Custom cloud pricing updated successfully", "pricing": result, }
  • Coroot API client method that performs the HTTP POST request to the Coroot server to update custom cloud pricing configuration.
    async def update_custom_cloud_pricing( self, project_id: str, pricing: dict[str, Any] ) -> dict[str, Any]: """Update custom cloud pricing configuration. Args: project_id: Project ID. pricing: Custom pricing configuration. Returns: Updated pricing configuration. """ response = await self._request( "POST", f"/api/project/{project_id}/custom_cloud_pricing", json=pricing ) return self._parse_json_response(response)

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