Skip to main content
Glama

whatsapp_contact_photo

Read-onlyIdempotent

Get the WhatsApp profile photo of ONE contact as a short-lived (15 min) HTTPS link, for showing an avatar. Read-only, nothing is sent. Cached 7 days (also 'no photo'); live lookups are paced per number (1 every 20 s, at most 200 a day), so call it only for contacts someone is looking at, never to sweep the address book. Returns { success:true, url, mime, size, picture_id, fetched_at, expires_at, cached }. On failure { success:false, error }: no_photo (none, or hidden by the contact's privacy), rate_limited (with retry_after_s), not_connected, unsupported, bad_jid (groups and channels are not supported).

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": {
      "jid": "<jid>"
    },
    "name": "whatsapp_contact_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
jidYes
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint=false), it discloses that nothing is sent, that results including 'no photo' are cached 7 days, and the exact live-lookup throttle. It also enumerates the full failure taxonomy (no_photo including privacy-hidden, rate_limited with retry_after_s, not_connected, unsupported, bad_jid) which the agent cannot infer from structured fields.

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?

Purpose, output shape, and constraints are front-loaded and every clause carries information; there is no filler. It is dense to the point of being a single long block, which slightly hurts scanning, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description supplies the success payload shape and the error variants, plus caching and rate-limit behavior — enough for an agent to call it and interpret the result correctly. The only real omission is the 'account' parameter's role, which is a minor gap given the tool's otherwise narrow scope.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the burden, and it does identify that the identifier must resolve to a single contact rather than a group or channel ('bad_jid (groups and channels are not supported)'), which is real semantic guidance. However, the second parameter 'account' is never mentioned, and no format example for jid is provided, so the compensation is partial rather than complete.

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 and resource ('Get the WhatsApp profile photo of ONE contact') and immediately qualifies the output form ('short-lived (15 min) HTTPS link') and intended use ('for showing an avatar'). The capitalized 'ONE' plus the explicit 'never to sweep the address book' makes it clearly distinguishable from a bulk contact or media-listing tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states precisely when to call ('only for contacts someone is looking at') and when not to ('never to sweep the address book'), and reinforces this with concrete pacing limits (1 per 20 s, 200/day) that change how an agent should batch or sequence calls. No sibling alternative is named, but the exclusions and constraints leave little ambiguity about correct invocation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.