Skip to main content
Glama

complete_login

Saves the logged-in session from an open login window in encrypted form and closes the window; optionally targets a named profile.

Instructions

Save the logged-in session from the login window (encrypted) and close the window.

profile: the name start_login used (optional when only one login window is open).

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

Input Schema

NameRequiredDescriptionDefault
profileNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare that this is a mutating, non-idempotent, open-world operation, so the bar is lower. The description adds useful non-obvious context: the session is stored encrypted and the login window is closed as a side effect. It does not cover failure modes, such as what happens if the login is not yet complete or if no login window exists.

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?

Two short sentences, front-loaded with the action and side effect, followed by the parameter note. Nothing is padded, though the 'profile:' label reads slightly like schema text rather than natural guidance.

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?

The tool is simple (one optional parameter) and an output schema exists, so return values need no explanation. The description covers the action, the encryption detail, the window-closing side effect, and the profile argument. Only error/edge-case behavior 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 coverage is 0%, so the description must carry parameter meaning, and it does: profile is defined as the name previously passed to start_login, plus the condition under which it can be null. That is meaningful compensation for a schema that documents nothing about this field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb-plus-resource pair: it saves the logged-in session (encrypted) and closes the login window. It also ties the tool to start_login, which helps distinguish it from siblings, though it never explicitly contrasts with save_session or close_session.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The parenthetical '(optional when only one login window is open)' gives a real conditional for when the profile argument can be omitted, and pairing with start_login implies when to call it. However, there is no explicit statement of when not to call it or how it relates to save_session/close_session, leaving alternatives to inference.

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