Skip to main content
Glama
AnkiWeb MCP Server
by jklnr

ankiweb_login

Idempotent

Opens a secure local browser form for signing in to AnkiWeb, waits for the user to submit it, and reports whether browser sign-in is pending before authenticated actions.

Instructions

Open a secure local browser form for the user to sign in to AnkiWeb.

Waits up to wait_seconds (1..55) for the user to submit the browser form. If pending_in_browser: true is returned, keep login_url visible to the user and call ankiweb_auth_status once the user confirms they finished signing in.

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

Input Schema

NameRequiredDescriptionDefault
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses that this opens a local browser, blocks up to `wait_seconds`, and returns a `pending_in_browser` flag whose true value requires a follow-up call. That is genuinely useful behavioral context that the annotations do not convey. It doesn't state what happens if the user never submits (does it return pending=false or raise an error), which keeps it at 4.

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?

Three short sentences, front-loaded with the action, then the blocking semantics, then the follow-up conditional. Every clause carries information the agent needs and nothing is repeated.

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?

An output schema exists, so the description is not obliged to explain return values, yet it helpfully names `pending_in_browser` and `login_url` and the branch they imply. Combined with the wait range, the agent has enough to invoke it correctly. The missing piece is the timeout/failure path and any prerequisite about a browser session being available locally.

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 0%, so the description must carry the parameter. It does: `wait_seconds` is bounded to 1..55 and defined as how long to wait for the user to submit the browser form, which is far more than the schema's bare integer with default 45. It doesn't explain the behavior at the boundary or the consequence of hitting the limit.

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 first sentence names a specific action and resource: open a secure local browser form so the user can sign in to AnkiWeb. It also distinguishes itself from the auth-check sibling by deferring verification to `ankiweb_auth_status` after the user confirms. It doesn't contrast with `ankiweb_logout` or state that this is the entry point of the auth flow, which keeps it short of a 5.

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?

The description gives a clear conditional flow: call this, then if `pending_in_browser: true` is returned, keep `login_url` visible and call `ankiweb_auth_status` once the user confirms. This tells the agent how to sequence the call and what to do next. It doesn't say what to do if the user is already signed in or how to handle a timeout, so it stops short of explicit when-not guidance.

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