Skip to main content
Glama
WSAPI WhatsApp MCP Server

WSAPI WhatsApp MCP Server

whatsapp_send_location

Send a WhatsApp location by latitude and longitude, with optional place name and address. Returns the message ID.

Instructions

Send a map location by latitude and longitude, with an optional place name and address. Not idempotent. Returns the message ID.

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": {
      "to": "<to>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "whatsapp_send_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient JID
urlNoLocation URL
nameNoLocation name
addressNoLocation address
latitudeYesLatitude
longitudeYesLongitude
ephemeralExpirationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.0.0
    • changedInput schema / properties / address / description
      Previous value: -"Address of the location (max 1000 characters)"New value: +"Location address"
    • removedInput schema / properties / address / optional
      Removed value: -true
    • addedInput schema / properties / ephemeralExpiration
      Added value: +{
      +  "enum": [
      +    "off",
      +    "24h",
      +    "7d",
      +    "90d"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / latitude / description
      Previous value: -"Latitude coordinate"New value: +"Latitude"
    • changedInput schema / properties / longitude / description
      Previous value: -"Longitude coordinate"New value: +"Longitude"
    • changedInput schema / properties / name / description
      Previous value: -"Name of the location (max 1000 characters)"New value: +"Location name"
    • removedInput schema / properties / name / optional
      Removed value: -true
    • changedInput schema / properties / to / description
      Previous value: -"Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)"New value: +"Recipient JID"
    • changedInput schema / properties / url / description
      Previous value: -"URL related to the location (e.g., Google Maps link)"New value: +"Location URL"
    • removedInput schema / properties / url / optional
      Removed value: -true
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=false, so the 'Not idempotent' sentence is largely redundant. The description does add one piece of behavior beyond the structured data — 'Returns the message ID' — which is valuable given there is no output schema, but it omits any note on permissions or delivery behavior for a write operation on an open-world network.

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 declarative sentences, front-loaded with the core action and the required inputs, with no filler. Every sentence contributes something (action, side-effect, return value).

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 simple message-send tool with well-described parameters and no output schema, the description covers what to send, the non-idempotency, and the return value. It is nearly sufficient, missing only guidance on session/auth prerequisites.

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 86%, so the schema carries the parameter burden and the baseline is 3. The description reinforces latitude/longitude and the optional name/address but adds no syntax or format detail, and never mentions the url or ephemeralExpiration parameters.

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 (Send) and resource (map location) plus the required coordinates, which cleanly separates it from sibling senders like whatsapp_send_text, whatsapp_send_contact, and whatsapp_send_image. An agent can route to it without opening the schema.

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?

The intended use (sharing a location) is implied by the name and description, but there is no explicit when-to-use guidance, no mention of prerequisites such as an active session, and no comparison against near alternatives like sending a location as a link (whatsapp_send_link) or as a contact.

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

Deploy Server

Other Tools