Skip to main content
Glama
secret-paste

secret-paste

Request a secret from the user

request_secret

Collects an API key or other secret via a native password dialog or local browser page, stores it directly in .env, the OS keychain, or 1Password, and returns only storage status.

Instructions

Ask the user for an API key or other secret via a native password dialog (pinentry, zenity, kdialog, or a macOS dialog), falling back to a local browser page. The value is stored directly to the chosen target (.env in the working directory, the OS keychain, or 1Password) and never enters the conversation. Afterwards, reference it indirectly (e.g. process.env.NAME); never ask the user to paste secrets in chat.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
targetNoenv
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does real work: it names the dialog fallbacks, the three storage destinations, and the key safety property that the value never enters the conversation. What is not disclosed is failure/cancel behavior, whether an existing value is overwritten, and what the call returns — meaningful gaps for a tool that writes to .env or a keychain.

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?

Three dense sentences, front-loaded with the action and mechanism before the storage and follow-up guidance. Slightly redundant: 'never enters the conversation' and 'never ask the user to paste secrets in chat' restate the same safety idea, costing a clause.

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 three-parameter, annotation-free tool with no output schema, the description covers the workflow, storage destinations, and post-call usage well enough to invoke correctly. It leaves open what the tool returns on success and how it behaves if the target CLI (e.g. op) is unavailable, which matters given there is no output schema to fall back on.

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 0%, so the description must compensate. It partly does: the prose '(.env in the working directory, the OS keychain, or 1Password)' maps the target enum values to real destinations, and 'process.env.NAME' hints at the uppercase env-var naming pattern enforced by the schema. However, the `description` parameter is never explained (presumably the dialog prompt text), leaving one of three parameters undocumented anywhere.

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 states a specific verb and resource (collect a secret from the user) and immediately names the concrete mechanism: a native password dialog with a stated fallback chain. It is unambiguous what calling the tool accomplishes, and nothing about it overlaps with a generic prompt or shell tool.

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?

It gives a clear trigger (you need an API key or secret) and an explicit prohibition ('never ask the user to paste secrets in chat'), plus a follow-up instruction to reference the value indirectly. It stops short of saying when not to use it — e.g. what to do if the secret already exists in the target — so it is clear context without full exclusion rules.

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