Skip to main content
Glama

instance-remove

Destructive

Removes a database server's record from db_instances.json, showing a plan unless apply is true; emergency operations require confirm and reason.

Instructions

dbabrain common.cli instance-remove: One server's record of db_instances.json to remove; a plan unless apply. 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):

  • data_dir: The data/ folder the record is removed from.

  • server_id (required): The server to remove.

  • apply: true removes the record; absent or false answers the plan and writes nothing.

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

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 flag destructiveHint=true and readOnlyHint=false, but the description adds material context: the default is a no-write plan, and the command sits on the emergency-operations list so it requires confirm: "yes" plus a reason in the request. That confirm gate is significant operational behavior not encoded in the annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The request-fields list is tight and front-loads the mode distinction, but 'Changes or removes something.' is filler and the 'dbabrain common.cli' invocation preamble plus the fragmentary first sentence cost clarity without adding actionable content.

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?

An output schema exists, so return values need not be described. For a destructive one-server mutation, the definition covers the dry-run default, the apply switch, the required identifier, and the confirm/reason gate — everything an agent needs to avoid an unintended deletion.

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?

The schema is an opaque object (0% description coverage, additionalProperties true), so the description carries the full burden and does so: data_dir, server_id (required), apply with default semantics, plus the confirm and reason fields. It still omits types and the accepted values for reason, so not a 5.

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 verb and resource: remove one server's record from db_instances.json, with a plan-vs-apply mode. That is enough to tell it apart from instance-add or instance-active, though it never names a sibling explicitly and the opening fragment ('One server's record of db_instances.json to remove') is grammatically awkward.

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 explains the two operating modes clearly (plan by default; apply=true writes), which is a form of usage guidance. It gives no guidance on when to choose this over credential-remove, entry-remove, or report-server-remove, and no prerequisites for the removal.

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