Skip to main content
Glama

authorize

Destructive

Request explicit confirmation for a database change or removal by supplying the operation, target, and reason; credentials remain in DBA Brain's encrypted store and never reach the caller.

Instructions

dbabrain common.cli authorize: A confirmation asked for on its own, for a caller that does the work itself. server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password. 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):

  • operation (required): The operation being authorised.

  • target_id: What it will act on - the id typed back at level 100.

  • target_label: How that target is shown.

  • effects: What it will do, shown first.

  • confirm: The payload declares the operator agreed.

  • confirm_target: The second answer, when the operation costs two: the target's own id, typed back.

  • assume_yes: Unattended: take the typed yes as given.

  • authorized_by: Who approved it, for example {"channel": "telegram"}.

  • reason: Why, for the evidence.

  • rules: What the operation costs to confirm: {level, confirmations, challenge, effects} - the node's own emergency_operations.json entry for it. Absent, the ladder the package ships prices it; malformed, it is refused rather ...

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": "authorize"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the description must add context, and it does: credentials are resolved from this node's inventory and encrypted secret store so no password travels in the request, confirmation cost comes from the node's emergency_operations.json rules or the shipped default ladder, two-stage confirmation uses `confirm_target` typed back, and `assume_yes` covers unattended runs. The one gap is that it never states plainly whether calling this tool performs the change or only records/validates the approval, which matters for a destructive-annotated tool.

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 bulleted request-field block is well structured and easy to scan, and the credential/confirmation sentences are worth their space. However, the leading internal path string and the vague "Changes or removes something" line consume attention without informing, and the definition trails off into an unfinished sentence. Front-loading of the single most important fact — that this authorises rather than executes — is not achieved.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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, and the confirmation ladder, secret resolution and field list cover most of what a complex free-form-request tool needs. Missing pieces are non-trivial for a destructive-annotated gate: whether approval implies execution, what happens on refusal, what "level 100" refers to, and where the truncated `rules` sentence was going.

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 description coverage is 0% and the only parameter is a free-form `request` object, so the description has to carry the whole payload, and it largely does — ten fields (operation, target_id, target_label, effects, confirm, confirm_target, assume_yes, authorized_by, reason, rules) are each given meaning, including the semantics of the `rules` ladder. It loses a point for internal inconsistency: it says "`server_id` (or `target`)" names the server, yet neither name appears in the request field list, which instead uses `target_id`. The text also truncates mid-sentence at "refused rather ...".

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line, "A confirmation asked for on its own, for a caller that does the work itself," does convey that this is a standalone confirmation gate rather than a worker, but it is phrased abstractly and leavened with an internal path ("dbabrain common.cli") that means nothing to a caller. The sentence "Changes or removes something" is ambiguous about whether it describes this tool or the operation being authorised, which blurs the purpose. An agent can eventually work out that this validates/obtains confirmation before a destructive operation, but it takes effort.

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?

Usage is implied rather than stated: a command on the emergency-operations list needs `confirm: "yes"` and a `reason`, and the tool exists for callers that do the work themselves. There is no explicit when-not guidance, no statement of what to do if the confirmation is refused, and no named alternative for callers that want the operation executed rather than authorised. The conditional rule about the emergency-operations list is the strongest guidance present.

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