Skip to main content
Glama

Create Secret

create_secret

Create a self-destructing, end-to-end encrypted link to share passwords, API keys, or credentials securely. Pass env, file, or dotenv references to keep secret values out of the conversation.

Instructions

Create a self-destructing, end-to-end encrypted link for sharing a secret such as a password, API key, or credential. Encryption happens locally; the Vaulted server only receives ciphertext. To keep the value out of the conversation transcript, pass a reference instead of the value: env:VAR_NAME, file:path (restricted to the working directory and --allowed-dirs), or dotenv:path:KEY. The MCP server reads it locally and encrypts it. Note: the returned link contains the decryption key, so you receive it and could open it. References keep the value out of the transcript, not out of your reach. Optionally provide a label to identify the secret in your history.

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": {
      "content": "<content>"
    },
    "name": "create_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional label to identify this secret in your history (e.g. 'stripe-key', 'db-password').
expiryNoHow long before the secret expires. Defaults to 24h.
contentYesThe secret to share, or a reference to it (env:VAR_NAME, file:path, dotenv:path:KEY) so the value stays out of the transcript. Max 1000 characters after resolving the reference.
max_viewsNoMaximum number of times the secret can be viewed before self-destructing. Defaults to 1.
passphraseNoOptional passphrase for additional protection. The recipient will need this passphrase to view the secret.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / content / description
      Previous value: -"The secret content to encrypt and share. Max 1000 characters."New value: +"The secret to share, or a reference to it (env:VAR_NAME, file:path, dotenv:path:KEY) so the value stays out of the transcript. Max 1000 characters after resolving the reference."
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the security model: encryption is local, the server only receives ciphertext, and the returned link itself contains the decryption key — including the candid note that references hide the value from the transcript but not from the agent's reach. It also conveys the self-destruct/expiry behavior, which no annotation covers.

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 the core action and the security model, then the reference mechanism. Slightly redundant — the transcript-privacy point is stated twice across two sentences — but nearly every sentence carries new information.

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?

Complete for a 5-parameter creation tool with no output schema: the description explains what is produced (a key-bearing link), how the value is sourced, and the privacy/security tradeoffs. Nothing an agent needs in order to invoke it correctly is missing.

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 the baseline is 3, but the description adds real meaning beyond it: the reference syntaxes for `content`, the file path restriction to the working directory and --allowed-dirs, and the purpose of `label` for history identification. It stops short of explaining expiry or max_views defaults, which the schema already handles.

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?

States a specific verb and resource — "Create a self-destructing, end-to-end encrypted link for sharing a secret" — and immediately scopes the content types (password, API key, credential). This clearly separates it from view_secret, list_secrets and check_status.

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 concrete when-to-use guidance plus a preferred invocation pattern: pass a reference (env:, file:, dotenv:) rather than the literal value to keep it out of the transcript. It does not explicitly name when to use a sibling instead (e.g. use view_secret to retrieve), but the intended workflow is clear enough.

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