Skip to main content
Glama

save_secret

Saves an API key or token shown on a page into the extension's encrypted store under a name, so it can be typed later. Use it when a site shows a key only once.

Instructions

Saves an API key or token that is shown on a page into the Open Sesame, under a name, so it can be typed elsewhere later with type_secret. The key goes straight from the page into the extension's encrypted store; this tool returns only its name, length and a short hint, never the key. Use it when a site shows a key once. If the page shows several keys, say which with "near" (the label next to it) or a selector. Use this only for a step you would otherwise hand back to the user. Nothing happens without the user's approval. If the result has status "needs_confirmation", nothing has been done yet: call the confirm tool with the values from its "confirm" object, unchanged.

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": "save_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoStart of the tab address, used when no tabId is given. With neither, the active tab is used.
nameYesName to save it under, such as OPENAI_API_KEY. Letters, digits, "_", "-", ".".
nearNoText of the label next to the key, such as "Secret key".
tabIdNoChrome tab id of the tab you are working in.
selectorNoCSS selector of the element showing the key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: the key moves page-to-encrypted-store, the return payload is limited to name/length/hint and never the key, user approval is always required, and the 'needs_confirmation' status has an explicit follow-up path. This is exactly the mutation and secrecy context an agent needs before calling.

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 what the tool does and what it does not return; nearly every sentence adds a distinct constraint. The approval sentence and the needs_confirmation paragraph overlap slightly, which is the only visible redundancy.

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?

Five parameters, no annotations, no output schema, and a security-sensitive write: the description still covers effect, return shape, approval requirement, element targeting, and the confirmation continuation. Nothing an agent needs in order to call 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 baseline is 3, but the description adds cross-parameter decision logic the schema's per-field text does not: use 'near' or 'selector' specifically when the page shows several keys. It does not explain url vs tabId precedence, which the schema already covers.

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 ('Saves an API key or token ... into the Open Sesame, under a name') plus the downstream purpose, and names the sibling that consumes the value (type_secret). The agent can distinguish it from list_secrets or type_secret without opening another schema.

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?

Gives explicit triggers ('Use it when a site shows a key once'), an explicit exclusion ('Use this only for a step you would otherwise hand back to the user'), disambiguation guidance for multi-key pages ('say which with "near" or a selector'), and routes the confirmation branch to the confirm tool.

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