Skip to main content
Glama
WapiSender MCP

WapiSender MCP

Official
by Wapi-Sender

switch_instance

Set the active WhatsApp instance by name or ID so subsequent tool calls target the intended instance.

Instructions

Set the active instance by name or ID. All subsequent tool calls will use this instance.

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": {
      "instanceIdOrName": "<instanceIdOrName>"
    },
    "name": "switch_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceIdOrNameYesInstance ID or instance_name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/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 crucial behavioral trait: this mutates session-wide state affecting every later call. It omits what happens on an unknown name/ID (error vs. silent failure) and whether the selection persists across sessions.

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 sentences, zero waste, with the core effect front-loaded and the global consequence immediately after. Well sized for a single-parameter tool.

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, no-output-schema tool the definition covers the essential contract: the input and the persistent side effect on subsequent calls. Only failure-mode behavior is left unstated, which is a minor gap at this complexity.

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 parameter description already says 'Instance ID or instance_name'; the description's 'by name or ID' merely restates it. No added detail on format, ambiguity between ID and name, or validation behavior.

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 ('Set') and resource ('the active instance') plus the accepted identifier forms (name or ID). It is clearly distinguishable from list_instances, get_instance_status, and refresh_instances, though it does not explicitly name those siblings.

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 'All subsequent tool calls will use this instance' — the agent can infer this must be called before instance-scoped operations. However, there is no explicit guidance on when not to call it, whether it must be called after login, or how it relates to refresh_instances.

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