Skip to main content
Glama

credentials.login

Signs in on the current page using a saved vault credential, filling password fields without exposing the secret and blocking use on mismatched page origins. Verify success with page.expect.

Instructions

Sign in on the current page using a saved credential. The password goes straight from the vault into the field and is never exposed. Refuses if the page origin does not match the one the credential was saved for. Filling is not proof of login: confirm with page.expect.

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": {
      "site": "<site>"
    },
    "name": "credentials.login"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
submitNoDefault true. false fills without submitting.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
submit_selectorNo
password_selectorNo
username_selectorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With only readOnlyHint=false and openWorldHint=true supplied, the description carries real disclosure work: the password moves vault-to-field and is never exposed, origin mismatch causes refusal, and a successful fill is explicitly not a login. These are security and semantics details no annotation conveys and that an agent would otherwise have to guess.

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?

Four tight sentences, front-loaded with the action, then the security guarantee, the refusal condition, and the verification caveat. Nothing is padding, though the 'Filling is not proof of login' caveat could be folded more efficiently into the usage sentence.

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 mutating, open-world tool with no output schema, the definition still covers the risky parts: secret handling, origin gating, and required verification. Remaining gaps are the undocumented selector parameters and the absence of any statement about what the call returns or how a failed fill surfaces.

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

Parameters3/5

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

Schema coverage is only 43%: submit, target_id, and browser_id are documented in the schema, but the required 'site' parameter and the three selector overrides are bare. The description's mention of the origin the credential 'was saved for' loosely implies site matching but never explains site's role or when username_selector/password_selector/submit_selector are needed. Baseline 3 for a partially documented schema where the description adds little.

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 ('Sign in on the current page using a saved credential') and, via the phrase 'saved credential', implicitly separates itself from credentials.save/delete/list. An agent can tell this is the credential-application tool rather than a storage-management tool without opening the 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 a clear when-not ('Refuses if the page origin does not match the one the credential was saved for') and a follow-up step ('confirm with page.expect'), which points to the correct sibling for verification. It does not explicitly say when to prefer this over credentials.save or a manual fill, so it stops short of full routing guidance.

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