Skip to main content
Glama

analyze_images

Read-onlyIdempotent

Audit every image on a page for SEO best practices, including alt text, file size, modern formats, lazy loading, dimensions, and filenames. Get per-image details and an aggregate score.

Instructions

Audit all images on a page for SEO best practices. Checks alt text, file size, modern formats (WebP/AVIF), lazy loading, dimensions, and filename quality. Returns per-image details and an aggregate score.

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": {
      "url": "<url>"
    },
    "name": "analyze_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe fully-qualified URL to analyze.
maxImagesNoMaximum number of images to analyze. Defaults to 100.
checkFileSizeNoWhen true, issue HEAD requests to determine each image file size. Slower but more accurate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds real value by disclosing the return shape (per-image details plus an aggregate score), which matters because no output schema exists, but it says nothing about cost or performance of the network-bound checks beyond what the schema's checkFileSize parameter already documents.

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?

Three front-loaded sentences with no filler: purpose, checks, and return value in that order. Slightly listy but every clause 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?

With no output schema, the description correctly compensates by naming what comes back (per-image details and aggregate score), and all parameters are covered by the schema. Minor gaps remain around failure behavior for unreachable images and whether results are truncated by maxImages.

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 three parameters are already fully documented, including the HEAD-request behavior and default of checkFileSize. The description adds no syntax, format, or naming guidance for url or maxImages, so baseline 3 applies.

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?

States a specific verb and resource ("Audit all images on a page") and enumerates the exact checks performed (alt text, file size, WebP/AVIF, lazy loading, dimensions, filenames) plus the return shape. It is clearly distinguishable from page-level siblings like analyze_page or audit_accessibility, though it never explicitly names those boundaries, and "all images" slightly overstates a scope capped by maxImages.

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 SEO-audit framing implies when to reach for it, but there is no explicit when-to-use, when-not-to-use, or named alternative for related checks (e.g. image weight vs Core Web Vitals diagnostics). Guidance is inferred rather than stated.

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