Skip to main content
Glama

login

Fills and submits the saved credential for the current tab after user approval, removes the password if submission fails, and returns NO_CREDENTIAL when none is saved.

Instructions

Fills the login the user saved for the site shown in a tab, and submits it. It always submits; if the form cannot be submitted the password is removed again. You never see the password and cannot choose which site it is for: it is matched to the page itself. On a two-step sign-in it fills whichever field is visible; call it again when the next step appears. Fails with NO_CREDENTIAL if the user has not saved a login for that site. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "login"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoStart of the tab address, used when no tabId is given. With neither, the active tab is used.
tabIdNoChrome tab id of the tab you are working in.

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: it discloses that it always submits, that the password is removed again if submission fails, that the credential is matched to the page rather than chosen, that user approval is required, and that 'needs_confirmation' means nothing has happened yet. These are exactly the traits an agent needs before invoking a credential-using action.

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-loads what the tool does and the always-submit behavior before the caveats. It is dense with several distinct behaviors, but each sentence adds information; only the two-step and confirmation clauses could be tightened slightly.

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?

Covers the full lifecycle for a credential-submitting tool: matching rules, failure codes, approval gating, the confirmation handoff to a sibling, and multi-step sign-in. Nothing an agent needs 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 description coverage is 100%, so both url and tabId are already documented. The description still adds meaning by explaining that the site cannot be selected at all and is matched to the page itself, which clarifies why these are the only inputs. Slight residual gap on tabId-vs-url precedence beyond what the schema states.

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 ('Fills the login the user saved... and submits it') and scopes it to the site of the tab, which cleanly separates it from sibling secret-management tools like list_secrets, save_secret, and type_secret. An agent can identify the action 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 Guidelines5/5

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

Gives an explicit boundary ('Use this only for a step you would otherwise hand back to the user'), tells the agent to re-invoke on the second step of a two-step sign-in, and routes to the sibling confirm tool when status is 'needs_confirmation'. It also names the failure condition NO_CREDENTIAL, so the agent knows when not to expect success.

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