Skip to main content
Glama

bettbox_set_mode

Changes outbound routing mode to rule, global, or direct for the current session; restart restores the persisted default.

Instructions

Change the outbound routing mode: rule / global / direct.

Runtime-only. Bettbox rebuilds the config from config.json on the next start, so a persisted default still wins after a restart.

Args: params (SetModeInput): mode.

Returns: str: Confirmation naming the previous and the new mode.

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": {
      "params": "<params>"
    },
    "name": "bettbox_set_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that the change is ephemeral — Bettbox rebuilds config from config.json on the next start, so a persisted default wins after restart — and that the call returns a confirmation naming the previous and new mode. It does not say whether existing connections are re-routed (relevant given the bettbox_close_connections sibling), which is the one notable behavioral gap.

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?

The core statement and the runtime caveat are front-loaded and earn their place. The 'Args:' and 'Returns:' blocks are boilerplate that largely duplicates the schema and the existing output schema, so they are mild waste rather than noise.

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 single-enum-parameter tool with an output schema and annotations covering the safety profile, the description supplies the key non-schema fact (non-persistence) and the return shape. The remaining gap is the effect of a mode change on in-flight connections.

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 Args section only restates 'params (SetModeInput): mode' without adding any meaning; all semantic content for the three modes lives in the schema's nested $defs, which the coverage metric counts as 0%. Because the description does not compensate for that reported coverage gap, it adds little beyond the structured field.

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 ('Change the outbound routing mode') and enumerates the three modes, which immediately separates it from siblings like bettbox_set_tun or bettbox_select_proxy. It stops short of explicitly contrasting with those siblings, but the resource is 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?

The 'Runtime-only' note is real usage guidance: it tells the agent not to expect the change to persist and that config.json wins after a restart. However, there is no statement of when to prefer this over bettbox_set_tun or bettbox_select_proxy, so an agent must infer the routing-vs-proxy distinction.

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