Skip to main content
Glama

Remember a sign-in for next time

browser_credentials_save

Save site credentials—username, password, or preferred Google account—so future logins can be filled automatically. Useful for SSO sites where only a Google account is stored.

Instructions

Store a username, password, or preferred Google account for a site, so the next login needs nobody.

Call this right after the user gives you credentials, before you use them — if the login then fails you have still saved them the retyping. Saving only a googleAccount is normal for sites behind SSO, where there is no password to hold.

Stored at mode 600 outside the repository. Passwords are never read back out; they can only be typed into a page by browser_credentials_fill.

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

Input Schema

NameRequiredDescriptionDefault
noteNoNon-secret hint for next time, e.g. "use the Sign in with Google button, the form rejects this".
domainYesSite the credentials belong to — a host or a URL, e.g. "mercury.com" or the page you are on. Prefer the parent domain when a site spans subdomains.
passwordNoPassword. Never echo this back to the user or into your reply.
usernameNoUsername, email, or account id.
googleAccountNoWhich account to choose at a Google "Choose an account" screen, e.g. "you@gmail.com".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does much of it: it discloses storage location and permissions (mode 600, outside the repository) and a write-only contract ('Passwords are never read back out'). What it omits is what happens when credentials already exist for that domain — overwrite, duplicate, or error — which matters for a store operation with no output schema.

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 short paragraphs, front-loaded with the verb, resource, and payoff. Each sentence earns its place: timing and rationale, the SSO partial-save case, and the storage/read-back contract. No filler or restatement of the name.

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 5-parameter mutation tool with no annotations and no output schema, the description covers the important ground: safety of storage, write-only semantics, and valid partial saves. The remaining gap is return/conflict behavior — with no output schema, the agent has no way to know whether a save succeeded or replaced an earlier entry.

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, and the description genuinely adds meaning: it explains that supplying only googleAccount is a valid and expected case for SSO sites, and reinforces the existing password non-echo constraint. It does not explain domain scoping behavior beyond what the schema says (e.g. what happens if a subdomain is passed when a parent-domain entry exists).

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 ('Store a username, password, or preferred Google account for a site') and its consequence ('the next login needs nobody'). It also distinguishes itself from browser_credentials_fill by explaining that stored passwords can only be typed into a page by that tool, so an agent can tell save from fill/list 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 Guidelines4/5

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

Gives explicit timing guidance: call it right after the user supplies credentials and before using them, with a rationale (the credentials are preserved even if the login fails). It also legitimizes the partial-save case ('Saving only a `googleAccount` is normal for sites behind SSO'). It stops short of naming when-not-to-use cases, such as updating or replacing an existing entry, which is where browser_credentials_forget might come in.

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