Skip to main content
Glama
cortezcristian

Kubecost MCP Server

delete_budget

Remove a budget rule from Kubecost cost management platform to eliminate unwanted spending constraints and maintain accurate cost control policies.

Instructions

Delete a budget rule from Kubecost

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budgetIdYes

Implementation Reference

  • src/index.ts:153-171 (registration)
    MCP tool registration for 'delete_budget', including input schema { budgetId: z.string() } and inline handler that calls kubecostClient.deleteBudget(budgetId) and returns formatted response
    this.tool( 'delete_budget', 'Delete a budget rule from Kubecost', { budgetId: z.string() }, async ({ budgetId }) => { try { await this.kubecostClient.deleteBudget(budgetId); return { isError: false, content: [{ type: 'text', text: `Budget with ID ${budgetId} deleted successfully` }] }; } catch (error) { return { isError: true, content: [{ type: 'text', text: error instanceof Error ? error.message : String(error) }] }; } } );
  • Input schema for delete_budget tool using Zod validation
    { budgetId: z.string() },
  • KubecostClient helper method that performs the HTTP DELETE request to delete the budget via Kubecost API
    async deleteBudget(budgetId: string): Promise<void> { await this.client.delete(`/model/budget/${budgetId}`); }

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/cortezcristian/kubecost-mcp'

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