Skip to main content
Glama

wa_export_session_zip

Export a WhatsApp session folder into one ZIP file for backup or moving the session to another host; protect the archive because it contains full account login credentials.

Instructions

Export a WhatsApp session folder as a single ZIP file, for backup or moving the session to another host. WARNING: the ZIP contains FULL login credentials for that WhatsApp account - anyone with the file can use the account. Keep it private and never share it publicly.

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

Input Schema

NameRequiredDescriptionDefault
output_pathNoWhere to write the ZIP (default: wa-session.zip next to the server folder)
session_dirNoSession folder to export (default: WA_SESSION_DIR or the server session folder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the most important trait: the output contains FULL account login credentials and must be kept private. That is valuable beyond any structured field. However it omits other operational behavior: whether an existing file at output_path is overwritten, whether the server must be running or stopped, and whether the export is atomic. Without annotations this leaves real gaps, so a 3 rather than higher.

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, front-loaded with what the tool does, then the security warning placed where it cannot be missed. No filler; 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?

For a two-optional-parameter read-ish export tool with no output schema, the description covers purpose, intended use, and the critical credential-safety caveat. Remaining gaps (overwrite behavior, server state requirements) are secondary, so a 4 rather than 5.

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% and both parameters (output_path, session_dir) document their defaults and fallbacks, so the schema already does the work. The description mentions neither parameter and adds no syntax, path-format, or precedence detail beyond it, so baseline 3 applies.

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?

Specific verb ("Export") plus specific resource ("WhatsApp session folder as a single ZIP file"), with the intended outcomes named (backup, host migration). No sibling in the catalog does session export, so the agent can select it without ambiguity.

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?

States the two scenarios that warrant calling it (backup, moving the session to another host), which is enough context to decide. It stops short of explicit exclusions or alternatives, e.g. whether a live/running server session should be stopped first.

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