Skip to main content
Glama

instance-active

Destructive

Switches an instance's active flag on or off for every app, with confirm and reason required for emergency changes.

Instructions

dbabrain common.cli instance-active: One instance switched on or off for every app - its active flag. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • server_id (required): The instance, as written in db_instances.json.

  • active (required): true switches the record on for every app, false off. metrics.enabled is metric-toggle's.

  • data_dir: Another data/ folder to read.

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": "instance-active"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely new behavioral context: membership on the emergency-operations list and the requirement for confirm:"yes" plus a reason in the request. The phrase 'Changes or removes something' is loose and slightly misleading since setting active=false does not remove a record, but it is not a direct contradiction.

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 field list is compact and front-loaded after a short purpose statement, with no filler. The 'dbabrain common.cli' prefix and the vague 'Changes or removes something' sentence are the only mild waste.

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?

An output schema exists, so return values need not be explained, and the description covers the mutation's key fields plus the confirm/reason requirement. The only soft spot is data_dir, described only as 'Another data/ folder to read', leaving its effect on the operation unclear.

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?

Schema coverage is 0% and the schema exposes only an opaque `request` object, so the description carries the full burden. It documents server_id (format reference to db_instances.json), active (true/false semantics and the metric-toggle distinction), and data_dir (alternate data folder to read), which meaningfully compensates for the schema gap. The confirm and reason keys are mentioned but not clearly enumerated as request fields.

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?

The description states a specific resource and effect: one instance's active flag switched on or off for every app. It also explicitly carves out the neighboring concept by noting 'metrics.enabled is metric-toggle's', which helps separate it from a sibling. The opening sentence is awkwardly phrased ('One instance switched on or off for every app - its active flag'), which keeps it just short of a 5.

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?

It gives an implicit when-to-use (toggling an instance's active flag) and a conditional prerequisite (emergency-operations commands require confirm and reason), plus one alternative for metric toggling. However, 'Changes or removes something' is vague and there is no explicit when-not guidance or statement about which sibling to use for adding/removing instances.

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