Skip to main content
Glama

Remove a key's budget

remove_key_budget
DestructiveIdempotent

Remove a key's budget

Removes one key's budget, its monthly limit (monthlyLimitUsd) included: the key is limited by the account's budget only, if there is one. 204 with no body, also when the key had none.

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": {
      "id": "<id>"
    },
    "name": "remove_key_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe key id: any working model key of the account, a customer's included (GET /budgets lists them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, so the safety profile is covered. The description earns credit beyond that by disclosing the exact field destroyed (monthlyLimitUsd), the resulting state (key limited by account budget only), and the return contract (204 with no body, including when the key had no budget) which concretely confirms idempotent behavior.

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 effect and the fallback consequence, then the return contract. Minor waste: the first line repeats the tool title verbatim, and the phrasing 'budget, its monthly limit (monthlyLimitUsd) included' is slightly convoluted, but nothing is redundant at length.

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 one-parameter, no-output-schema mutation tool the description covers everything an agent needs: what is removed, what the state becomes afterward, that it is safe to repeat, and that success is 204 with no body. No return-value explanation is required since there is no output schema.

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

Parameters3/5

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

Schema coverage is 100% and the single 'id' parameter is already documented with format uuid and an explanation of which keys qualify. The description adds only a passing reference to monthlyLimitUsd, which is an effect rather than a parameter, so this sits at the baseline where the schema does the heavy lifting.

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 (remove) and resource (a key's budget) and clarifies the semantic scope: it deletes the key's monthlyLimitUsd so the key falls back to the account budget only. That sentence implicitly separates it from the account-level sibling (remove_account_budget) without the agent needing to open a schema.

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

Usage Guidelines3/5

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

Usage is implied rather than prescribed: the effect described makes clear this is for clearing a per-key override, and GET /budgets is mentioned as where to find valid key ids. However, there is no explicit 'use this instead of X' or precondition statement (e.g., permissions needed, behavior if the key is already inheriting the account budget).

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