Skip to main content
Glama

metric-severity

Destructive

Remap statuses for one metric on a database instance, or batch multiple remaps together with notes and confirmation for emergency operations.

Instructions

dbabrain common.cli metric-severity: How one metric's statuses are remapped for one instance - or a list of such remaps, written together. 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: The instance. Required in the one-remap form; absent beside items.

  • metric_code: The metric. Required in the one-remap form; absent beside items. "*" is every metric of the server - metrics.severity_map, under each metric's own map, which still wins; it takes no metric_item.

  • metric_item: One item of it.

  • severity_map: {STATUS: STATUS}.

  • note: Why.

  • items: Several remaps written together, every one or none: each {server_id, metric_code, metric_item, severity_map, note}. With items, the request carries nothing else but data_dir.

  • 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": "metric-severity"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

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?

Annotations already flag destructive=true, readOnly=false, so the bar is lower, and the description still adds real value: it states that this command is on the emergency-operations list and requires `confirm: "yes"` plus a `reason`. It also discloses atomicity semantics for the batch form ('every one or none') and precedence interaction with metrics.severity_map ('*' is every metric... which still wins) - genuinely non-obvious behavior beyond the annotations.

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 purpose is front-loaded and the field list is organized as a bullet-free but readable block, which is good structure. However the prose is terse to the point of being cryptic in places ('as on the command line', 'One item of it') and mixes structural constraints with field definitions, muddying clarity.

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 documents the request fields and the confirm/reason requirement adequately for a destructive write tool. Gaps remain around failure behavior and the '*' precedence edge cases, but nothing an agent needs to call it correctly is clearly missing.

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% (the schema is a single untyped `request` object with no property descriptions), so the description carries the full weight and largely does so: it enumerates server_id, metric_code, metric_item, severity_map, note, items, and data_dir, and gives per-form requirements. It loses a point because some entries are cryptic ('metric_item: One item of it') and the severity_map value constraints ('{STATUS: STATUS}') and data_dir semantics are underspecified.

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 opening states a specific verb and resource: remapping one metric's statuses for one instance, plus the batched list form. It is clear what the tool does and that it writes/removes, but it never names the sibling metric tools (metric-toggle, metric-env, metric-batch) to differentiate scope, so an agent must infer which metric tool to pick.

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

Usage Guidelines2/5

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

There is no explicit when-to-use / when-not guidance relative to alternatives, and no statement of prerequisites for choosing this tool over other metric operations. The only cues are structural (single-remap form vs the `items` list form), which is form selection rather than usage guidance.

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