Skip to main content
Glama

save_secret

Saves a secret to 1Password by creating an item or setting a field from a file, command output, or pasted value without returning the secret.

Instructions

Save a secret to 1Password: create an item or set one field of an existing item. The value is never returned. Give exactly one source: from_file (e.g. a file delivered by a secret-request card; deleted after saving by default), from_command (its stdout becomes the value and is never shown; e.g. a CLI that creates a token), or value (only when the user already pasted it in the conversation).

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

Input Schema

NameRequiredDescriptionDefault
itemYesItem title, e.g. "GITHUB_TOKEN" or "Staging admin"
fieldNoField to set. Default "credential"; use "username"/"password" for logins
shellNoShell for from_command
valueNoLiteral value, only if the user already shared it in the chat
vaultNoVault, if more than one is accessible
secretsNoSecrets for from_command, same format as run_with_secrets
websiteNoWebsite URL, for logins
categoryNoFor new items. Default ApiCredentials
concealedNoStore as a concealed field. Default true; false for usernames, hosts, URLs
from_fileNoPath of a file whose content (trimmed) is the value
overwriteNoRequired to replace a field that already has a value
delete_fileNoDelete from_file after saving. Default true
descriptionNoWhat the secret is for and how to use it (shown by list_secrets)
from_commandNoCommand whose stdout (trimmed) is the value; runs like run_with_secrets

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that the value is never returned, that from_command stdout is never shown, and that from_file is deleted after saving by default. It stops short of covering permission/auth requirements, what happens when the item already exists without overwrite, or any confirmation behavior, so it is strong but not exhaustive.

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 with the purpose first, then the exclusivity constraint, then the per-source routing. Every clause carries either a rule or an example; nothing is repeated from the schema.

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 14-parameter mutation tool with no annotations and no output schema, the description covers the highest-risk semantics: source exclusivity, secret non-disclosure, and file deletion. Gaps remain around overwrite confirmation, vault/category defaults for updates, and item-exists behavior, which matter for a write tool.

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 genuine meaning the schema cannot express: the mutual exclusivity of from_file/from_command/value and the situational rule that value is acceptable only when the user already pasted it. It does not elaborate on overwrite, vault, or concealed semantics beyond the schema text.

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 ("Save a secret to 1Password") and immediately enumerates the two operating modes: creating a new item or setting one field on an existing item. An agent can distinguish this from the list/run siblings purely from the description.

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

Usage Guidelines5/5

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

It states an explicit selection rule: "Give exactly one source" and then routes each case — from_file for a file delivered by a secret-request card, from_command for a CLI that creates a token, value only when the user already pasted it in the chat. The "only when" exclusion on value is exactly the kind of guardrail an agent needs.

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