Skip to main content
Glama
Automattic

Gravatar MCP Server

Official
by Automattic

Get Avatar Image by ID

get_avatar_by_id
Read-onlyIdempotent

Retrieve a Gravatar avatar image by its identifier. Use this tool to fetch a profile's avatar with custom size, rating, and fallback options.

Instructions

Retrieve the avatar image for a Gravatar profile using an avatar identifier. More efficient when you already have the hashed identifier. 'Get the avatar image for this Gravatar ID' or 'Show me a 150px avatar for user ID abc123...'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoDesired avatar size in pixels (1-2048). Images are square, so this sets both width and height. Common sizes: 80 (default web), 200 (high-res web), 512 (large displays). Gravatar will scale the image appropriately.
ratingNoMaximum content rating to display. 'G' (general audiences), 'PG' (parental guidance), 'R' (restricted), 'X' (explicit). If user's avatar exceeds this rating, the default image is shown instead.
forceDefaultNoWhen true, always returns the default image instead of the user's avatar. Useful for testing default options or ensuring consistent placeholder images.
defaultOptionNoFallback image style when no avatar exists. Options: '404' (return HTTP 404 error instead of image), 'mp' (mystery person silhouette), 'identicon' (geometric pattern), 'monsterid' (generated monster), 'wavatar' (generated face), 'retro' (8-bit style), 'robohash' (robot), 'blank' (transparent). If not specified, Gravatar's default image is returned when no avatar exists.
avatarIdentifierYesAvatar identifier for the Gravatar profile. An Avatar Identifier is an email address that has been normalized (e.g. lower-cased and trimmed) and then hashed with either SHA256 (preferred) or MD5 (deprecated). Note: Unlike profile identifiers, avatar identifiers cannot use URL slugs - only email hashes are supported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-beta.4

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover readOnlyHint, openWorldHint, and idempotentHint, so the safety profile is handled by structured data. The description adds only an efficiency trait and confirms image retrieval; it does not disclose error behavior (e.g., 404 responses) or response format, which are minor gaps given the annotation coverage.

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?

The core purpose and efficiency guidance are front-loaded in two succinct sentences before the examples block. The examples are slightly redundant ('Get the avatar image for this Gravatar ID' restates sentence one) but they serve natural-language intent matching, so the structure remains efficient.

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 5-parameter tool with full schema coverage and three strong annotations, the description covers the essentials: what it does, the key input, and a usage hint. It could be improved by explicitly routing to get_avatar_by_email when only the email address is known, but nothing required for a correct call is missing.

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 five parameters are already documented in the schema. The description adds marginal value by linking 'hashed identifier' to avatarIdentifier and hinting at size usage via the '150px' example, but these largely echo existing schema text.

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?

The description states a specific action ('Retrieve the avatar image') and resource ('Gravatar profile using an avatar identifier'), which is clear. It differentiates from get_avatar_by_email through the efficiency note and the identifier-based retrieval key, but it never names the sibling explicitly, so the differentiation is implicit rather than stated.

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?

'More efficient when you already have the hashed identifier' provides a concrete when-to-use signal and implies the alternative lookup path (by email) when the hash is not on hand. However, it stops short of explicitly naming get_avatar_by_email or stating a formal when-not-to-use exclusion.

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