Skip to main content
Glama

Delete Budget

delete_budget
DestructiveIdempotent

Delete a budget by its id (DELETE /api/budgets/{budget_id}). DESTRUCTIVE — the budget and its alerting are removed. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "budget_id": "b1a2c3d4-...", "confirm": true }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "budget_id": "<budget_id>"
    },
    "name": "delete_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true to actually create the budget. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
budget_idYesThe id of the budget to delete (substituted into DELETE /api/budgets/{budgetId}). Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered structurally. The description still adds real value beyond them: it discloses that alerting attached to the budget is also removed, states the four-part authorization requirement (admin:write scope, org switch, admin/super_admin role, confirm:true), and notes that failures are atomic ('changes nothing') and name the missing condition. That is substantive behavioral context, not repetition of annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the operation and endpoint, followed by destruction scope, then authorization requirements, then an example — a logical progression. The all-caps blocks are dense but each sentence carries actionable information; only the redundant 'DESTRUCTIVE' plus 'WRITE TOOL' framing slightly overlaps the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with no output schema, the definition covers effect scope (budget plus alerting), the full authorization checklist, failure semantics, and key-type restrictions. Nothing an agent needs in order to call this correctly or to relay an error is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description goes beyond the schema by framing confirm:true as one of four conjunctive gates rather than a bare boolean, warning that omissions cause refusal with a named error, and giving a concrete example illustrating the expected payload shape.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource plus the underlying endpoint: 'Delete a budget by its id (DELETE /api/budgets/{budget_id})'. An agent can immediately distinguish this from create_budget, update_budget, or get_budget without inspecting any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is clear (removing a budget by id) and the prerequisites for actually using it are spelled out in detail. It does not, however, explicitly route the agent to alternatives such as update_budget when the intent is modification rather than removal, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources