Skip to main content
Glama

WhatsMCP: MCP for WhatsApp

Set Profile Photo

wa_set_profile_photo
DestructiveIdempotent

Change the profile photo of one of your own WhatsApp accounts — the picture every contact sees. Pass image_base64 (JPEG, PNG or GIF, at most 5 MiB) to replace it: the image is center-cropped to a square and scaled to at most 640x640, as WhatsApp stores it. Or pass remove=true to delete the current photo. The previous photo cannot be restored afterwards. Contacts may keep seeing the old photo for a while until their app refreshes it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
removeNotrue removes the account's current profile photo instead of replacing it; image_base64 must then be omitted
account_idYesthe account whose own profile photo to change, as returned by wa_list_accounts
image_base64Nothe new photo: base64-encoded JPEG, PNG or GIF, at most 5 MiB decoded. It is center-cropped to a square and scaled to at most 640x640. Omit it when remove is true

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bytesNothe size of the JPEG that was uploaded; absent on a removal
widthNothe stored photo's side in pixels (it is always square); absent on a removal
statusYesok (WhatsApp accepted the change) or refused (nothing was done)
refusalNopresent only when status is refused
summaryNoa human-readable result
picture_idNothe id WhatsApp assigned the new photo; absent on a removal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already indicate mutation and destructiveness, but the description goes beyond them by disclosing that the image is center-cropped to a square and scaled to at most 640x640, that the previous photo cannot be restored, and that contacts may see the old photo for a while due to caching. These are valuable behavioral details not present in structured metadata.

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?

The description is four sentences, each serving a distinct purpose: stating the action, explaining the replace path with transformation details, explaining the remove path, and disclosing consequences. There is no filler or repetition.

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?

For a 3-parameter tool with an output schema, the description covers the two usage modes, constraints (format, size, scaling), and non-obvious effects (irreversibility, eventual consistency). Nothing an agent needs to call the tool correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds contextual meaning beyond the schema by clarifying that the photo is what every contact sees and by highlighting the irreversible consequence of replacing/removing it. This enriches the parameter definitions without contradicting the schema.

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 states a specific verb and resource: "Change the profile photo of one of your own WhatsApp accounts — the picture every contact sees." It clearly distinguishes the tool from siblings like wa_get_profile and wa_set_presence by scoping it to one's own account profile photo.

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?

The description provides clear context for when to use the tool: changing one's own profile photo, with two explicit invocation modes (pass image_base64 to replace, or remove=true to delete). It does not explicitly name alternatives or exclusions, but no sibling tool performs this function, so the context is sufficient.

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.

Resources