Skip to main content
Glama

View Secret

view_secret
Destructive

Decrypt and retrieve secrets from Vaulted links with view limits, delivering them via browser, clipboard, file, or direct output before the link self-destructs.

Instructions

Retrieve and decrypt a secret from a Vaulted secure link. The secret may have view limits and will be destroyed after the maximum views are reached. By default opens in the browser for security — use output_mode to copy to clipboard, save to file, or return directly.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "view_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFull Vaulted URL (e.g., https://vaulted.fyi/s/abc123#key). Preferred over separate ID + key.
file_pathNoFile path for file output mode (required when output_mode is "file").
secret_idNoSecret ID (alternative to URL). Must be paired with encryption_key.
passphraseNoPassphrase to decrypt a passphrase-protected secret
output_modeNoHow to deliver the secret. browser (default): opens the link in your browser — decryption happens in the web app. direct: returns decrypted content in the tool response. clipboard: copies decrypted content to the system clipboard (content omitted from response). file: writes decrypted content to file_path (content omitted from response).
ttl_secondsNoOptional TTL in seconds — if set, the file is auto-deleted after this duration. Maximum 2147483 seconds (~24.8 days, the Node.js setTimeout limit). Best-effort: if the MCP server process exits before the timer fires, the file will not be deleted.
encryption_keyNoEncryption key (alternative to URL). Must be paired with secret_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / ttl_seconds
      Added value: +{
      +  "description": "Optional TTL in seconds — if set, the file is auto-deleted after this duration. Maximum 2147483 seconds (~24.8 days, the Node.js setTimeout limit). Best-effort: if the MCP server process exits before the timer fires, the file will not be deleted.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 2147483,
      +  "type": "integer"
      +}
  2. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations declare destructiveHint=true, and the description corroborates and explains why: the secret may have view limits and is destroyed once maximum views are reached. That is meaningful context beyond the boolean flag, plus it discloses the security-motivated browser default. It does not cover permission or auth requirements, which keeps it from a 5.

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?

Three sentences, front-loaded with the action, then the destructive consequence, then the delivery-mode guidance. No filler or repeated schema text.

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 7-parameter tool with zero required parameters and a rich enum, the description covers the action, the destructive consequence, and mode selection. The url-vs-secret_id/encryption_key pairing and passphrase handling are left entirely to the schema, which is acceptable given full coverage but leaves the description slightly thin on the no-required-params structure.

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 the enum, passphrase, ttl_seconds, and url-vs-id pairing are already fully documented in structured fields. The description only restates the output_mode options at a coarser level, adding no syntax or fallback behavior beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ("Retrieve and decrypt a secret from a Vaulted secure link") and adds scope detail about view limits. This clearly separates it from create_secret, list_secrets, and check_status without needing to open any schema.

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?

Explains the delivery-mode decision explicitly: default browser mode "for security" with output_mode as the switch for clipboard, file, or direct return. It does not state when to prefer this tool over check_status or list_secrets, but for a terminal retrieval action the usage context is clear.

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