Skip to main content
Glama

entry-remove

Destructive

Remove one matching record from a DBA Brain data JSON list, with a safe preview by default and deletion only when apply is true.

Instructions

dbabrain common.cli entry-remove: One record of a data/*.json list to remove, found by its fields; 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.

  • file (required): The data/*.json file name.

  • match (required): The record's fields; exactly one record must match. Its own key (backup_id, restore_id, id, name, ...) is its name; a record told only by a field pointing elsewhere names nothing.

  • 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": "entry-remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 mutability is known; the description adds real context beyond that: the default is a non-writing plan, exactly one record must match, and list commands may demand confirm/reason. The note that a record identified only by a field pointing elsewhere 'names nothing' hints at an identification failure mode, though it is phrased too cryptically to be reliable guidance.

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?

Purpose is front-loaded, then required request fields are listed as a compact bullet block. The line 'Changes or removes something.' is boilerplate that adds nothing, and the emergency-operations sentence is generic template text, but overall there is little waste for the amount of semantics conveyed.

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 described. The dry-run default, the single-match constraint, and the confirm/reason gate cover the risky behaviors; the only meaningful omission is what the tool does when zero or multiple records match (error vs. no-op), which is left implied by 'exactly one record must match'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% — the input schema is a single opaque `request` object with no documented properties — so the description carries the full burden and does so: it enumerates data_dir, file (required), match (required), and apply, and explains match's semantics (the record's own key identifies it). This is meaning the schema cannot supply.

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 first sentence names a specific verb (remove) and resource (one record of a data/*.json list) and states how the record is identified (by its fields). It does not explicitly differentiate itself from the removal siblings (credential-remove, instance-remove, report-server-remove), but the resource scoping is specific enough that an agent can select it without opening the schema.

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 does give the key decision rule — 'apply: true removes the record; absent or false answers the plan and writes nothing' — which tells an agent when the call is a dry run vs. a real deletion. However, the sentence about `confirm: "yes"` and `reason` is conditional on an unspecified 'emergency-operations list' the agent cannot verify, and there is no guidance on when to prefer this over the other *-remove tools.

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