Skip to main content
Glama
AnkiWeb MCP Server
by jklnr

ankiweb_logout

Idempotent

Clear saved AnkiWeb and AnkiUser session cookies from the OS keychain and disk to log out and remove stored session credentials.

Instructions

Clear saved AnkiWeb and AnkiUser session cookies from keychain and disk.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, idempotent, non-destructive operation, so the bar is lower, and the description still adds real value by naming the two credential stores it wipes (keychain and disk). It does not say whether the agent must be authenticated first or that subsequent calls will require re-authentication, which is the main residual gap.

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?

A single front-loaded sentence with no filler; the object of the action and its two locations are stated immediately. Nothing redundant or hedged.

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?

With no parameters, an output schema present, and annotations covering the safety profile, the definition supplies everything an agent needs: what is cleared, from where, and that the result is idempotent. Return values are legitimately omitted because an output schema exists.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is a 4. The schema's 100% coverage confirms no undocumented inputs.

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 ('Clear') and a specific resource ('saved AnkiWeb and AnkiUser session cookies'), naming the exact stores (keychain and disk). This makes the logout effect concrete and separable from ankiweb_login, though the description never uses the word 'logout' or otherwise explicitly contrasts itself with the auth-status sibling.

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 usage is only implied: an agent can infer this is the teardown counterpart to ankiweb_login, but the description never says 'use this when you want to end the session' nor names an alternative such as ankiweb_auth_status for checking state. No preconditions or exclusions are given.

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