Skip to main content
Glama

bettbox_update_subscription

Downloads fresh configs for named subscriptions, validates structure, and atomically replaces profile YAML without stopping Bettbox. Supports validate-only dry runs and optional metadata sync.

Instructions

Download fresh configs for the named subscriptions and write them to disk.

Mirrors the app's per-profile refresh: fetch the URL through the proxy, normalise tab indentation, validate the structure, then atomically replace profiles/<id>.yaml. The app does not need to be stopped.

Args: params (UpdateSubscriptionInput): profiles (ids or labels), sync_metadata to also refresh dates/quotas (needs a restart), validate_only to dry-run.

Returns: str: Per-profile result: ok, changed, bytes, nodes, error. Ends with whether a restart happened.

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_update_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true; the description adds substantial value on top by disclosing that files are atomically replaced at profiles/<id>.yaml, that indentation is normalised and structure validated, that fetches go through the proxy, and that no app stop is required. The restart caveat for sync_metadata is the kind of side effect an agent cannot infer from annotations.

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 behavioural paragraph is front-loaded and dense with useful detail, and the Args block is compact. The Returns block is largely redundant given a declared output schema, which is the main wasted text.

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 mutating, open-world refresh tool the description covers the write target, atomicity, validation, network path, restart implications and dry-run capability, which is everything needed to invoke it safely. Return-shape explanation is redundant against the output schema but not harmful.

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?

Reported schema coverage is 0%, so the description must carry the burden, and the Args block does explain all three fields: profiles as ids or labels, sync_metadata as a date/quota refresh requiring a restart, and validate_only as a dry-run. It still omits the case-insensitive label matching and the per-profile error/partial-failure behaviour for multi-profile calls.

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?

"Download fresh configs for the named subscriptions and write them to disk" gives a concrete verb (download/refresh) and resource (subscription configs), and the scope word "named" implicitly separates it from the bulk sibling bettbox_sync_all_subscriptions. It never names that alternative explicitly, so the differentiation is inferable rather than stated.

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

Usage Guidelines4/5

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

The description establishes clear operating context that an agent would otherwise have to guess: the app does not need to be stopped, sync_metadata requires a restart, and validate_only exists as a dry-run. It stops short of an explicit "use this when X, use bettbox_sync_all_subscriptions when Y" routing rule.

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