Skip to main content
Glama

phone_login

Destructive

Log in to the on-screen app using the user's own credentials from their vault, read and typed by the daemon so no password passes through the conversation. Handles SMS, mail, or TOTP codes.

Instructions

Log the app on screen in with the user's OWN account from their password vault (bitwarden-use on the Mac): the daemon reads the entry and types it, so no credential passes through this conversation. Use when an app shows its login page during the user's task. Several matching entries: the answer lists their names; ask the user, then pass item (and user). Existing accounts only — never sign-up, password change or payment. needs_code: call again with code_via (sms|mail) and code_from (max two).

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

Input Schema

NameRequiredDescriptionDefault
itemNoVault entry name or id, when several entries match the app.
userNoUsername, to pick between entries with the same name.
submitNoTap the app's Log in button after filling (default true).
code_viaNoEnter a verification code instead of logging in: sms, mail, totp or auto.
instanceNodaemon instance name
code_fromNoSender, brand or subject fragment of the message with the code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`PhoneHandler::phone_login`]."
  2. Changed12 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / code_from / default
      Removed value: -null
    • changedInput schema / properties / code_from / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / code_via / default
      Removed value: -null
    • changedInput schema / properties / code_via / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
    • removedInput schema / properties / item / default
      Removed value: -null
    • changedInput schema / properties / item / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / submit / default
      Removed value: -null
    • changedInput schema / properties / submit / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • removedInput schema / properties / user / default
      Removed value: -null
    • changedInput schema / properties / user / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  3. Changed1 schema field changedv0.27.3
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  4. First observedv0.21.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true, destructiveHint=true, and non-idempotent, so the risk profile is known. The description adds genuine value beyond that: no credential transits the conversation, and the account exists already (no sign-up or password change). It does not explain the concrete failure modes (wrong entry typed into a live login, lockout after repeated failed attempts) or what a successful answer looks like, so it stays at 3.

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 the core action and mechanism, then the usage conditions, then the code follow-up. Dense and largely waste-free, though the colon-and-fragment style makes the multi-entry and needs_code sentences harder to parse than necessary.

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, no-required-parameter, open-world tool with no output schema, the description covers the trigger, the ambiguity path, the code follow-up, and the hard exclusions. It does not state what the tool returns on success or how a failed/ambiguous login surfaces to the agent, which leaves a real gap for a tool that acts on the screen.

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 the baseline is 3, but the description adds workflow meaning the schema cannot: what to do when several entries match (ask the user, then pass item and user) and a two-step code verification protocol capping at two retries. The submit and instance parameters are left entirely to the schema.

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 concrete verb+resource ('Log the app on screen in') plus the mechanism ('the daemon reads the entry and types it') and the scope ('with the user's OWN account'). This distinguishes it from secret-reading siblings like phone_key or phone_read_value without needing 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?

Gives an explicit trigger ('when an app shows its login page during the user's task'), explicit exclusions ('never sign-up, password change or payment'), and an alternative path for verification codes (call again with code_via/code_from). It also tells the agent what to do when several vault entries match.

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