Skip to main content
Glama

Update the account

update_account
Destructive

Update the account

Changes the account name, the low-balance alert threshold and the default gateway. Fields left out are unchanged; name: null clears the name, defaultGateway: null the default gateway. The order a request runs under: its x-klinn-gateway header, else its key's gateway, else the account's default gateway. A default gateway with guardrails locks the keys under it: a header naming another gateway is 403 gateway_locked.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNonull clears it.
lowBalanceUsdNo
defaultGatewayNoA chat gateway's name to make the account's default (every own model key without a gateway of its own runs through it), or null to clear it. A decisions gateway is refused: attach it to a key instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description adds genuinely non-structured behavior: patch-style merge semantics, null-clearing for name and defaultGateway, the three-level gateway resolution order, and the specific 403 gateway_locked failure when guardrails lock keys. It stops short of saying what broader effect a default-gateway change has on existing keys' routing beyond the lock rule.

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 what changes, then conditional semantics, then the resolution order and its failure mode — a sensible order. The opening line merely repeats the title, and the physics of the gateway resolution sentence is dense but each clause carries information.

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 3-optional-parameter mutation with no output schema and annotations covering the safety profile, the description supplies merge behavior, null semantics, and the main error path. It lacks any mention of required permissions or what the response returns after an update, which are the only material gaps.

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 67% and the schema itself already documents name and defaultGateway well, including the null and decisions-gateway rejection rules. The description adds value by naming lowBalanceUsd as the low-balance alert threshold and by explaining the resolution order that defaultGateway participates in, but it does not restate units or bounds for the threshold beyond the schema's numeric limits.

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 concrete verb and resource and enumerates exactly what is mutable: account name, low-balance alert threshold, and default gateway. It does not distinguish itself from siblings like update_gateway or update_key, but the account-scoped field list makes the target resource unambiguous.

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 by the field list — this is the tool for changing account-level settings — and the merge semantics (omitted fields unchanged) tell the agent how to call it. There is no explicit when-to-use vs. when-not guidance, e.g. pointing at update_gateway for gateway properties or update_key for per-key gateways.

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