Skip to main content
Glama

save_key

Store a key: an API key, token or client secret your work needs, such as one to set as an environment variable. The value is encrypted and is not returned. A name already saved needs replace: true. Logins (site passwords) go in save_login instead.

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>",
      "value": "<value>"
    },
    "name": "save_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
noteNoOptional note. Shown in lists, so never put a secret here.
siteNoOptional host the key belongs to.
valueYes
replaceNoReplace the value of a key with this name.
identity_idNoIdentity to use. Omit when the account has exactly one identity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 full burden and does well: it discloses that the value is encrypted and never returned, and that a name collision requires replace: true, implying overwrite mutation semantics. It does not cover permission or identity requirements, nor what a successful response contains, which keeps it short of 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?

Four short sentences: what it stores, a concrete example use, the security property, the collision rule, then the sibling hand-off. Every sentence adds information and the most decision-relevant content is front-loaded.

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 6-parameter write tool with no annotations and no output schema, the description covers the secret-handling contract, overwrite semantics, and sibling routing. The main remaining omission is what a call returns / whether the stored key is retrievable afterward, which would help an agent close the loop.

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 67%, so the schema already documents note, site, replace and identity_id. The description adds real meaning beyond that for replace — the collision-requires-replace rule — and clarifies what 'value' holds in practice. It says nothing about identity_id or site behavior, leaving a gap but not a large one.

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 opens with a specific verb and resource ('Store a key: an API key, token or client secret') and immediately scopes it to secrets a workflow needs, such as environment variables. It explicitly separates itself from the nearest sibling ('Logins (site passwords) go in save_login instead'), so an agent can choose between the two without opening either 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?

It gives a positive use case (API keys, tokens, client secrets) and an explicit exclusion routing site passwords to save_login. It also states the precondition for updating an existing entry ('A name already saved needs replace: true'), which tells the agent when a plain call will fail.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources