Skip to main content
Glama

Sign in with a code

login_code

Signs in on machines where no browser can open, such as containers or remote hosts. Returns a short code and URL, then waits to store the token after approval.

Instructions

Signs in where no browser can be opened on this machine — a container, a remote host. The first call returns a short code and a URL to enter it at, which the person opens anywhere; call it again to wait for the approval and store the token.

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_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
replaceNoSign in even though a token is already stored.
waitSecondsNoHow long a waiting call polls before answering. Default 120.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only tell the agent this is a non-idempotent, open-world, non-destructive write. The description adds the essential protocol the annotations cannot convey: the first call returns a short code and URL, the second call blocks waiting for approval and stores the token. That two-phase behavior is critical and well disclosed.

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?

Two sentences, zero padding, and the use-case constraint is front-loaded before the flow explanation. Every clause earns its place.

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?

There is no output schema, and the description competently explains what the first call returns (code + URL). It leaves minor gaps – what the token persistence means, error/timeout behavior after the wait window – that would round out the picture for a state-changing auth tool.

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 description coverage is 100%, so both parameters (replace, waitSeconds) are already documented with ranges and defaults in the schema. The description hints at the 'waiting call' polling behavior but adds no syntax or semantics beyond what structured fields provide – the correct baseline when the schema does the work.

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?

States a specific verb and resource ('Signs in') and immediately narrows the operating context to machines without a browser (container, remote host). It implicitly distinguishes itself from the sibling 'login' tool by environment, though it never names the alternative, so an agent must infer the routing.

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?

Clearly describes when to use it ('where no browser can be opened on this machine — a container, a remote host') and lays out the two-call flow. It stops short of an explicit 'use login instead when a browser is available' exclusion, leaving the sibling comparison to inference.

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