Skip to main content
Glama

wa_logout

Unlink this session from the linked WhatsApp account, removing the linked device on the phone too. Requires confirm set to true to complete the logout.

Instructions

Unlink this session from the WhatsApp account (the linked device is removed on the phone too). Requires confirm: true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "confirm": "<confirm>"
    },
    "name": "wa_logout"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true to actually log out

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the important side effect that the linked device is removed on the phone too, and that confirmation is mandatory. It omits irreversibility, whether stored session credentials are wiped, and what a caller must do to log back in.

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 short clauses, zero filler, and the irreversible side effect and the confirmation requirement are both front-loaded. Nothing could be removed without losing information.

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?

For a one-parameter, non-idempotent session tool with no annotations and no output schema, the definition covers the main behavioral risk and the safety gate. It would be fully complete with a short note on post-logout state and whether the action can be undone.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents 'confirm' as 'Must be true to actually log out.' The description restates the same requirement rather than adding new meaning such as what happens on a false value. Baseline 3 applies.

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 object: 'Unlink this session from the WhatsApp account.' The parenthetical clarifies the real-world effect on the phone's linked-device list, which separates it from session tools like wa_export_session_zip. It stops short of explicitly naming a contrasting sibling, so not 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 Guidelines3/5

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

Usage is implied by the operation itself (call when you want to disconnect the session) and the confirmation gate is stated. There is no explicit when-not guidance, no mention of when to prefer re-pairing or session export instead, and no note on whether logout is recoverable via re-authentication.

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