Skip to main content
Glama

Close an API budget

close_budget

End a budget when the task is done. Returns a signed statement of every call and charge.

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": {
      "budgetId": "<budgetId>"
    },
    "name": "close_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does add useful context beyond the schema: closing is terminal ('End'), and it produces 'a signed statement of every call and charge'. But it is silent on whether closing is irreversible, whether the budget can be reopened, whether further calls are rejected afterward, or what permissions are needed for a mutation.

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

Conciseness5/5

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

Two short sentences, zero filler, with the action and the payoff (signed statement) front-loaded. Nothing repeats what the schema already says.

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

Completeness3/5

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

For a one-parameter terminal mutation with no output schema, the description covers purpose, timing, and what the caller gets back, which is reasonable. It leaves out the two things an agent most needs for a destructive operation: irreversibility and the source/format of budgetId.

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

Parameters2/5

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

The single parameter budgetId has 0% schema description coverage, and the description never mentions it or says where the identifier comes from (presumably request_budget or get_budget). With low coverage the description is expected to compensate, and it does not.

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

Purpose4/5

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

States a specific verb and resource ('End a budget') plus the trigger condition ('when the task is done') and the return value. An agent can distinguish it from get_budget and request_budget by the fact that it terminates rather than retrieves or creates, though the description never explicitly contrasts them.

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?

'When the task is done' gives an implied trigger, but there is no guidance on prerequisites (must a budget exist and be open?), on when not to close (e.g. work still in flight), or on what to use instead if the task is not finished. Usage is inferable rather than specified.

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