Skip to main content
Glama

ddb_logout

DestructiveIdempotent

Revoke local D&D Beyond access and delete the saved session file to block further authenticated tool calls. This only disconnects this server; your D&D Beyond website account remains logged in.

Instructions

Revoke this server's local access to D&D Beyond: blocks any further authenticated tool call immediately, deletes the saved session file on disk, and closes any open browser context. Safe to call repeatedly, including when you were never logged in. This is a LOCAL logout only — it does NOT log your account out on the D&D Beyond website, and it does not call any D&D Beyond endpoint. Run ddb_login again afterward to establish a fresh session.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by naming exactly what is destroyed (the saved session file on disk), what is closed (open browser context), and how immediately the effect lands. It reinforces idempotentHint=true with 'safe to call repeatedly' and confines scope with 'does not call any D&D Beyond endpoint', matching openWorldHint=false.

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 front-loaded sentences, each doing distinct work: what it does, safety/idempotency, and scope limitation plus next step. No filler or repetition.

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, no output schema, and rich annotations, the description supplies everything an agent needs to call it correctly: the destructive effect, idempotency, local-only scope, and the recovery path via ddb_login.

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 no parameter meaning to add; the description correctly avoids inventing any. Baseline of 4 applies for a no-arg tool.

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 specific verb and scope — 'Revoke this server's local access to D&D Beyond' — and immediately enumerates the concrete effects (blocks authenticated calls, deletes the session file, closes browser context). An agent can distinguish this from ddb_login and ddb_close_browser without opening any schema.

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?

Gives clear when-to-use context: safe to call repeatedly, safe when never logged in, and explicit follow-up guidance to run ddb_login afterward. It also excludes the common misinterpretation (this is not a website logout). Minor gap: no explicit routing against siblings such as ddb_close_browser or ddb_clear_cache.

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