Skip to main content
Glama

passkey_request_secret

Idempotent

Prompts the user through a native OS password dialog to save or rotate secrets directly into the system keychain, returning only field names and status—never secret values.

Instructions

Prompt the human user via an out-of-band native OS hidden dialog to save or rotate secrets.

Opens a secure macOS/Linux password dialog directly on the user's desktop, stores the entered value(s) straight into the OS keychain, and returns only field names and status — secret values NEVER enter AI context or tool output. Automatically skips fields that already exist unless overwrite=True or an error/expiry reason is provided (which triggers a native rotation notification + Passkey - Rotate Secret prompt and stamps last_rotated).

Args: entry_name: Keychain entry name to create or update (e.g., "stripe_dev") fields: Environment variable / field names to capture (max 10) policy: Optional access policy ('allow', 'session', or 'prompt'; defaults to default-policy; policy relaxations below an existing entry's policy or default-policy are rejected) hint: Optional short hint shown in the dialog (e.g., where to find the key) reason: Optional error/expiry reason (e.g., "401 Unauthorized: token expired") timeout: Seconds to wait before timing out (5-300, default: 120) overwrite: Re-prompt even if requested fields already exist

Returns: Secret-free dictionary with ok, status ('created'|'updated'|'already_exists'), entry, fields_saved, fields_present, policy, and optional rotated/last_rotated.

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": {
      "entry_name": "<entry_name>",
      "fields": "<fields>"
    },
    "name": "passkey_request_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
hintNo
fieldsYes
policyNo
reasonNo
timeoutNo
overwriteNo
entry_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.7/5.0
Behavior5/5

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

This goes well beyond the annotations: it discloses that a hidden native dialog is opened on the user's desktop, that the platform scope is macOS/Linux, that secret values never enter AI context or tool output, and that policy relaxations below an existing entry's policy are rejected. The mutation behavior is consistent with readOnlyHint=false and destructiveHint=false, since nothing is overwritten unless explicitly requested.

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?

The secrecy guarantee and behavior are front-loaded before the Args block, and each argument line carries distinct information. The prose opening is somewhat long and overlaps mildly with the Args/Returns sections, but nothing is filler.

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?

With seven parameters, no output schema, and no schema descriptions, the definition still supplies the return shape (ok, status values, entry, fields_saved/present, policy, rotated/last_rotated). An agent has enough to call it correctly and to interpret the secret-free result without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the full burden, and it does: it gives an example entry_name, the max-10 limit on fields, the three policy values plus default-policy enforcement, timeout's 5-300 range and 120 default, and the semantic effect of reason and overwrite. Each parameter gains meaning the schema's bare titles do not supply.

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 names a specific verb and resource: prompt the human via an out-of-band native OS dialog to save or rotate secrets into the OS keychain. It is unmistakable against siblings like passkey_find or passkey_list, which are read/lookup tools, because this one captures new secret material out-of-band.

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?

The description gives clear conditions for variants of use: existing fields are skipped unless overwrite=True, and passing an error/expiry reason triggers a rotation prompt with last_rotated stamping. It does not name any alternative tool or an explicit when-not, so it stops short of a 5.

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