Skip to main content
Glama
Automattic

Gravatar MCP Server

Official
by Automattic

Get Avatar Image by Email

get_avatar_by_email
Read-onlyIdempotent

Retrieve a user's Gravatar avatar image by email address, with options for size, rating, and fallback defaults. Automatically normalizes and hashes the email for secure lookup.

Instructions

Retrieve the avatar image for a Gravatar profile using an email address. The email is automatically normalized and hashed before querying the Gravatar API. 'Get the avatar image for user@example.com' or 'Show me a 200px avatar for john.doe@company.com.'

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.
emailYesThe email address associated with the Gravatar profile. Can be any valid email format - the system will automatically normalize and hash the email for lookup. The email is processed securely and not stored.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-beta.4

TDQS

A4/5.0
Behavior4/5

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

The description discloses the important preprocessing behavior of automatic email normalization and hashing before the Gravatar API call, which is not captured by the annotations. The readOnlyHint, openWorldHint, and idempotentHint already cover safety, so the extra detail about hashing is meaningful rather than redundant. It doesn't discuss return format or fallback behavior, but those are partly covered by the schema.

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 two substantive sentences plus a compact examples block; the main action and the critical hashing behavior are front-loaded. No filler or repetition of schema details, so every sentence 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?

The schema and annotations cover parameter details, safe read-only behavior, and idempotency, while the description supplies the purpose, lookup method, and normalization behavior. With no output schema, a brief mention of the return format (e.g., image bytes vs. URL) would improve completeness, but this is a minor gap because the tool name and examples make the image result clear. Overall it is sufficiently complete for an agent to invoke correctly.

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?

With 100% schema description coverage, the schema already documents all five parameters, including enums and size bounds, so the description doesn't need to repeat them. The only added parameter-related value is the note that email is normalized and hashed, which supplements the email parameter's schema text. This matches the baseline of 3 for a fully covered 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 uses a specific verb ('Retrieve'), a precise resource ('avatar image for a Gravatar profile'), and the key lookup method ('using an email address'), which distinguishes it from sibling tools like get_avatar_by_id and get_profile_by_email. This gives an agent a clear basis for selecting the correct tool.

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 description implies use when an email address is available and an avatar image is wanted, and the examples reinforce natural-language triggers. However, it never explicitly states when not to use it or points to alternatives such as get_avatar_by_id when an ID is available, so usage guidance remains mostly implicit.

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