Skip to main content
Glama
WapiSender MCP

WapiSender MCP

Official
by Wapi-Sender

simulate_flow

Simulate an incoming WhatsApp message against the active instance to test flow logic and return generated flow logs without sending real messages.

Instructions

Simulate an incoming message against the active instance and return the generated flow logs. Simulation does not send WhatsApp messages.

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": {
      "message": "<message>"
    },
    "name": "simulate_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoOptional simulated sender phone number
flowIdNoOptional flow UUID to test specifically
messageYesIncoming message text to simulate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden, and it does disclose the key safety trait: no WhatsApp messages are sent, and logs are returned. It omits other relevant traits such as whether the flow must be active, whether any real state or logs are persisted, or whether quotas/limits apply.

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 with zero filler; the core action is front-loaded and the non-sending constraint follows immediately. 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 three-parameter, no-output-schema tool, the description states the action, the target, the return value, and the most important side-effect constraint. The only real gap is what happens when the optional flowId is omitted (which flow is exercised), which the description never addresses.

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%, so all three parameters are already documented in the schema; baseline 3 applies. The description adds only the notion that simulation runs against the 'active instance' and implies a testable flow, without extra format or defaulting detail for message, from, or flowId.

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?

Names a specific verb (simulate) and resource (an incoming message against the active instance) and states the return value (generated flow logs). The clause 'Simulation does not send WhatsApp messages' sharply distinguishes it from the send_* siblings, though it does not name them explicitly.

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 context is implied: test a flow by replaying a message without real delivery. There is no explicit when-to-use/when-not contrast and no named alternative (e.g. get_flow_logs for real production logs), so the agent must infer the boundary itself.

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