Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

create_session

Create a new WhatsApp session. Needs an account key (ak_live_...). Returns the session name and its own session token; pair it with get_qr_code next.

Instructions

Create a new WhatsApp session. Needs an account key (ak_live_...). Returns the session name and its own session token; pair it with get_qr_code next.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.1
    • removedInput schema / properties / name
      Removed value: -{
      -  "description": "Optional session name. Auto-generated if omitted.",
      -  "type": "string"
      -}
  2. First observedv1.0.3

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose the credential requirement (ak_live_... key) and the return values (session name and its own session token), which the empty schema and missing output schema cannot convey. It stops short of disclosing side effects such as persistence, duplicate-session behavior, or session-count limits.

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 credential requirement, then the outcome and next step. No filler wording.

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 zero-parameter creation tool without an output schema, the description covers purpose, credential prerequisite, returned values, and the logical next call. It could go further on failure/duplicate behavior, which matters for a mutating operation with no annotations.

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?

There are zero input parameters, so the baseline is 4. The description adds the useful note that an account key is required even though no parameter exists for it, though it does not clarify how that key is supplied (header vs. implicit config).

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?

The description opens with a specific verb+resource ('Create a new WhatsApp session') and explicitly routes the follow-up to a named sibling ('pair it with get_qr_code next'). An agent can distinguish creation from status/listing tools without inspecting the empty 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?

It gives clear sequencing guidance ('pair it with get_qr_code next') and states the precondition that it needs an account key (ak_live_...). It does not say when not to use it (e.g., if a session already exists) or what the alternatives are for listing/checking sessions.

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