Skip to main content
Glama

set_secret

Stores a secret key and value in the vault for onboarding or updating existing secrets, keeping credentials out of conversation messages.

Instructions

Store a secret value in the vault. Use during onboarding or to update an existing secret.

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": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "set_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesSecret key name
valueYesSecret value to store

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole burden. It implies that an existing key may be overwritten but never states whether the write fails on a duplicate key or silently replaces the old value, nor does it mention required permissions, whether the value is encrypted, or that the previous value becomes unrecoverable.

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?

Two short sentences with the core action front-loaded and no padding. The second sentence is slightly vague ('during onboarding') but still earns its place by conveying the update use case.

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?

For a simple two-parameter tool with full schema coverage and no output schema, the essentials are present, but with zero annotations the definition should disclose overwrite semantics and any auth requirement for writing secrets. Those gaps matter because this is a mutation on sensitive data.

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% and both parameters are documented in the schema, so the baseline of 3 applies. The description adds nothing about key naming conventions, namespacing, or value format/size constraints beyond what the schema already says.

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?

States a specific verb and resource ('Store a secret value in the vault') and clarifies that it also covers updating an existing secret, implying upsert rather than create-only. It is clearly distinguishable from the read-oriented siblings get_secret/list_secrets, though it never names them.

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

Usage Guidelines4/5

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

Gives explicit context for when to call it: during onboarding or when updating an existing secret. It lacks any exclusion or alternative routing (e.g., what to use to read or delete), so it stops short of full when/when-not guidance.

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