Skip to main content
Glama
oneguard-sa

oneguard-mcp

Official
by oneguard-sa

Replace a secret's contents

oneguard_secrets_edit
Destructive

Replace a secret's entire payload with new values. Overwrites all existing keys, so use when you need to update a secret completely.

Instructions

Replaces a secret's stored payload. IMPORTANT: this overwrites the whole payload — a single key/value pair replaces every key the secret held. To change one variable while keeping the rest: for a generated value use oneguard_secrets_generate (which merges), otherwise sync the secret to a .env file, edit that file, and push it back with from_env_file. Confirm with the user before calling this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoSingle key name. WARNING: replaces all other keys.
nameNoSecret name. Required by the CLI; omit to reuse the current name.
valueNoSingle value. WARNING: replaces all other keys.
vaultYesVault id or its 8-character prefix.
secretYesSecret id or its 8-character prefix.
project_dirNoAbsolute path to the developer's project directory. This is where the .oneguard link file and the .env file live. Must be absolute — ask the user if you do not know it.
from_env_fileNoPath to a .env file, relative to project_dir (default ".env"). Preferred: sends the full set of variables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already mark destructiveHint=true, and the description reinforces this with the concrete consequence that the whole payload is overwritten. It goes beyond the annotation by explaining the merge alternative and requiring user confirmation, giving the agent actionable context about the destructive behavior.

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 three sentences with no fluff. The critical destructive warning is front-loaded, and the alternative paths are compressed into a clear conditional. Every sentence earns its place.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with seven parameters and no output schema, the description covers the key risks, names the alternatives, and states the user-confirmation requirement. Parameter details are handled by the schema, leaving the description to supply the missing decision context.

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 100%, so each parameter is already documented. The description adds valuable semantic context by explaining that key and value together form a replacement pair, and by positioning from_env_file as the preferred way to send the full set of variables, which helps the agent choose the right parameter combination.

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 opens with a specific verb and resource — 'Replaces a secret's stored payload' — and immediately clarifies the destructive scope by warning that a single key/value pair replaces every key. It also distinguishes this from merge-style siblings by naming oneguard_secrets_generate as the alternative.

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

Usage Guidelines5/5

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

The description gives explicit routing: for changing one variable while keeping others, use oneguard_secrets_generate (which merges) or sync to a .env file and push back with from_env_file. It also sets a clear precondition: 'Confirm with the user before calling this.' This tells the agent when to use the tool and when to choose an alternative.

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