Skip to main content
Glama

update_custom_cloud_pricing

Apply custom cloud pricing configurations to override default costs for specific projects within the MCP Server for Coroot, ensuring tailored resource expense management.

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

Implementation Reference

  • MCP tool handler function registered with @mcp.tool(). This is the entry point for the 'update_custom_cloud_pricing' tool in the FastMCP server, which delegates to the implementation helper.
    @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]
  • Helper implementation function that calls the CorootClient's update_custom_cloud_pricing method and formats the 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, }
  • CorootClient method that makes the actual HTTP POST request to the Coroot API endpoint /api/project/{project_id}/custom_cloud_pricing to update the 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