Skip to main content
Glama

sops_create_secrets

Generate and encrypt random, user-provided, or derived secrets as SOPS YAML, returning encrypted content for the client to write to disk.

Instructions

Generate and encrypt secrets as SOPS YAML. Returns encrypted content for the client to write to disk. Supports three sources: 'generated' (cryptographic randomness), 'external' (user-provided values), and 'derived' (computed from another key in the same file via a transform such as pbkdf2_sha512_authelia). Derived secret plaintexts are returned in the response so they can be copied into config files.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "secrets": "<secrets>"
    },
    "name": "sops_create_secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoName of the key domain to encrypt to / decrypt with. Optional. Defaults to the domain recorded in the file's _meta_unencrypted block, and failing that to 'default'. Call sops_list_domains to see what this server has configured.
secretsYesList of secrets to create

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.1
    • changedInput schema / properties / secrets / items / properties / charset / description
      Previous value: -"Character set for generated secrets"New value: +"Character set for generated secrets. 'base64' is a 64-character alphabet (letters, digits, '+', '/'), not base64 encoding; 'urlsafe' is the same size with '-' and '_' instead, safe in URLs. A secret under 64 bits of entropy (length x log2(charset size)) is still created, with a warning in the response."
    • changedInput schema / properties / secrets / items / properties / charset / enum
      Previous value: -[
      -  "alphanumeric",
      -  "alphanumeric_symbols",
      -  "hex",
      -  "base64",
      -  "numeric"
      -]New value: +[
      +  "alphanumeric",
      +  "alphanumeric_symbols",
      +  "hex",
      +  "base64",
      +  "urlsafe",
      +  "numeric"
      +]
  2. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "Name of the key domain to encrypt to / decrypt with. Optional. Defaults to the domain recorded in the file's _meta_unencrypted block, and failing that to 'default'. Call sops_list_domains to see what this server has configured.",
      +  "type": "string"
      +}
  3. First observedv0.10.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description steps up: it discloses that nothing is written to disk (the client writes the returned content), that derived plaintexts are surfaced in the response, and that low-entropy generated secrets still succeed but return a warning. That is meaningful behavior beyond the schema; what's still missing is what happens when a key already exists or how domains interact beyond the schema note.

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?

Front-loaded with purpose, then sources, then the return behavior; every sentence carries information. It is dense but not padded, with only minor redundancy between the source list and the later derived-mode sentence.

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?

For a tool with no annotations and no output schema, the definition covers the essentials: what it produces, that output is returned rather than persisted, and the security-relevant exception of plaintext derived values and entropy warnings. The remaining gap is idempotency/overwrite behavior against existing keys in the file.

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

Parameters3/5

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

Schema description coverage is 100% and the per-property text is unusually thorough (charset semantics, entropy formula, transform names, key_name regex), so the schema is doing the heavy lifting. The description reinforces the meaning of the three source values but adds no syntax or constraint detail beyond what the schema already documents.

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?

Opens with a specific verb+resource ("Generate and encrypt secrets as SOPS YAML") and states the three supported sources up front. It implicitly separates itself from disk-mutating siblings by saying encrypted content is returned "for the client to write to disk," but it never names an alternative such as sops_add_secrets or sops_create_k8s_secret, so an agent must still infer which creation 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 Guidelines3/5

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

It defines when each source mode applies (generated/external/derived) and what the derived mode is for, which is real usage guidance. However, there is no statement about when to use this tool versus the other creation and add tools, and no note on preconditions such as the target file already existing or keys already being present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.