Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

get_session_status

Get the current status of a session (STARTING, SCAN_QR_CODE, WORKING, FAILED, STOPPED, PASSKEY_REQUIRED, PASSKEY_CONFIRMATION_REQUIRED).

Instructions

Get the current status of a session (STARTING, SCAN_QR_CODE, WORKING, FAILED, STOPPED, PASSKEY_REQUIRED, PASSKEY_CONFIRMATION_REQUIRED). PASSKEY_* means WhatsApp wants a passkey, which must be signed in a browser: tell the user to finish linking at https://whatsapp-messaging.retentionstack.agency/app. These tools cannot do it.

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

Input Schema

NameRequiredDescriptionDefault
sessionNoSession name. Leave out when using a session token (ch_live_...).me

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / properties / session / default
      Added value: +"me"
    • changedInput schema / properties / session / description
      Previous value: -"Session name"New value: +"Session name. Leave out when using a session token (ch_live_...)."
    • removedInput schema / required
      Removed value: -[
      -  "session"
      -]
  2. First observedv1.0.3

TDQS

A4.1/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 a genuinely non-obvious behavioral trait: PASSKEY_* states require out-of-band browser signing and cannot be resolved by any of these tools. It does not discuss polling cadence, whether the call is a pure read, or what happens for an unknown session name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the operation and the possible results, then the exception path. The parenthetical enum is long but earns its place since there is no output schema; 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 single-optional-parameter read tool with no output schema, the description covers the return values and the one failure mode an agent would otherwise mishandle. Minor gaps remain around session-not-found behavior and refresh/polling expectations.

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 coverage is 100% and the schema already explains the 'me' default and the omit-when-using-a-token rule, so the description adds no parameter meaning. Baseline 3 applies when the schema does the work.

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 resource (get the current status of a session) and enumerates the exact status values returned, which distinguishes it from siblings like create_session, list_sessions, and get_qr_code that create or list rather than report status.

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?

Implies the use case clearly (check where a session is in its lifecycle) and adds an explicit when-not path: for PASSKEY_* states the agent must stop and direct the user to the browser URL because 'these tools cannot do it.' It does not explicitly contrast with list_sessions, so it falls short of a 5.

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