Skip to main content
Glama

encrypt-secret

Destructive

Encrypts a plaintext secrets file into a protected store, supporting JSON envelope or readable text output for DBA Brain credential management.

Instructions

dbabrain common.cli encrypt-secret: The plaintext secret source and the encrypted store to write; never the passphrase. 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):

  • source: The plaintext file; default secrets/secret_text.json.

  • dest: The encrypted store; default data/encrypted_secret_text.json.

  • format: json (the envelope, default) or txt (the lines a person reads).

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": "encrypt-secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the bar is lower, yet the description still adds real context: no passphrase is accepted, a destination store is written, and emergency-operations calls need confirm="yes" plus a reason. It does not say whether an existing dest is overwritten or how failures are reported, which matters for a destructive 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?

Purpose is front-loaded and the request fields are cleanly bulleted, but the generic 'Changes or removes something' sentence is filler that restates the destructive annotation, and the confirm/reason paragraph is wedged between purpose and parameter list where it interrupts flow.

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 explained, and all documented request fields with defaults are present. Still, for a destructive write tool the description omits what happens to a pre-existing destination, whether the source is deleted after encryption, and any error behavior — gaps an agent would care about.

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 only parameter is an open-ended `request` object, so the description carries the full burden — and it does list source, dest, and format with their defaults and semantics (json envelope vs txt readable lines). It does not name `confirm`/`reason` inside the field list, but those are covered in the preceding paragraph.

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 sentence names a concrete verb and transformation: take a plaintext secret source and write it to an encrypted store, plus a useful negative constraint ('never the passphrase'). It is distinguishable from a generic encrypt-file operation, though it never explicitly contrasts itself with the sibling encrypt-file or check-secret tools.

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?

There is conditional guidance that emergency-operations commands require `confirm`: "yes" and a `reason`, which tells the agent how to invoke it in that circumstance. However, there is no guidance on when to choose this tool versus encrypt-file or check-secret, and no stated prerequisites such as whether the source file must exist.

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