Skip to main content
Glama

update_thread_budget

DestructiveIdempotent

Update only the named thread budget limits while leaving unspecified caps unchanged; pass null to clear a specific cap.

Instructions

Change only the budget dimensions you name, leaving the rest as they are. An omitted dimension is untouched; an explicit null clears that cap. Use this to raise or lower one limit without restating the others — set_thread_budget replaces the whole envelope. An unrecognized key is rejected rather than ignored.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "update_thread_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_turnsNo
thread_idYes
max_tokensNo
max_wall_secsNowall-clock budget vs the working clock
max_usd_microsNoUSD in micros ($1 = 1000000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.6/5.0
Behavior4/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 base bar is lower, yet the description still adds real behaviour: merge-style partial update, null-as-delete semantics, and hard rejection of unknown keys. It stops short of explaining what makes an update destructive (e.g. clearing or lowering a cap below current consumption), whether permissions are required, or what a successful call returns.

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?

Three sentences, each doing distinct work: semantics of partial update, the sibling alternative, and the validation failure mode. The core rule is front-loaded in sentence one with no filler.

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

Completeness4/5

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

For a destructive, idempotent mutation with no output schema and 40% schema coverage, the description covers the crucial semantics an agent needs to call it safely. Remaining gaps are permission requirements and the consequences of the destructive path, which matter for a cap-clearing operation but are secondary to the merge rule it already states clearly.

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?

With only 40% schema coverage, the description carries meaningful weight: it defines the tri-state meaning of every budget parameter (absent = unchanged, null = cleared cap, value = set), which the schema does not express despite the anyOf nullable types. It adds nothing about thread_id or about the wall-clock vs working-clock distinction and micro-USD units, which the schema already handles for two of the fields.

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?

The first sentence states a precise verb and resource — changing only the named budget dimensions of a thread — and the contrast with 'set_thread_budget replaces the whole envelope' pins down exactly which of the two budget writers this is. An agent can distinguish it from set_thread_budget and get_thread_budget without opening 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 Guidelines5/5

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

It gives an explicit selection rule: use this to raise or lower one limit without restating the others, and use set_thread_budget when replacing the whole envelope. It also states the two edge-case behaviours an agent must decide between (omitted dimension = untouched, explicit null = clear the cap) and that unrecognized keys are rejected rather than silently dropped.

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

Deploy Server

Other Tools