Skip to main content
Glama
privacyplaybook

sops-mcp

sops_rename_secret

Rename a key in a SOPS-encrypted file while preserving its value and metadata. Automatically updates dependent references in derived secrets.

Instructions

Rename a key in an existing SOPS-encrypted file. Preserves the value, source type, and metadata. Updates 'from' references in any derived secrets that depend on the renamed key. Requires SOPS_AGE_KEY env var.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encrypted_contentYesContents of an existing secrets.enc.yaml file
old_nameYesCurrent key name
new_nameYesNew key name (must match ^[A-Z][A-Z0-9_]*$ and not collide with an existing key)
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that values, source type, and metadata are preserved; that 'from' references in derived secrets are updated; and that the SOPS_AGE_KEY env var is required. It does not mention error handling or idempotency but covers key behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with three sentences that front-load the main action and cover essential details (preservation, reference updates, env var requirement). No redundant or vague language.

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?

Given no annotations or output schema, the description provides sufficient context for the rename operation. It explains side effects (updating derived secrets) and a prerequisite (env var). It could mention what happens on failure or if the key does not exist, but overall it is adequate for an AI agent to understand the tool's behavior.

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 coverage is 100%, so baseline is 3. The description does not add meaning beyond the schema: it mentions 'key' and 'rename' but the parameters (encrypted_content, old_name, new_name) are already described in the schema. No additional constraints or examples are provided.

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

Purpose5/5

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

The description clearly states the action ('rename a key'), the resource ('existing SOPS-encrypted file'), and distinguishes from sibling tools (add, delete, list, etc.) by focusing on renaming. It also details what is preserved and updated.

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?

The description implies when to use (to rename a key) but provides no explicit guidance on when not to use or alternatives. No mention of prerequisites or comparison with siblings like sops_add_secrets or sops_delete_secrets.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/privacyplaybook/sops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server