Skip to main content
Glama
NicolasET

MCP PageSpeed Insights

by NicolasET

Get Image Optimization

get_image_optimization

Analyze images on a URL to identify compression, WebP/AVIF conversion, lazy-loading, and unsized-image layout shift issues.

Instructions

Get image optimization analysis for a URL. Identifies images that need compression, format conversion to modern formats (WebP/AVIF), lazy-loading opportunities for offscreen images, and unsized images causing layout shifts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe full URL to analyze (e.g., https://example.com)
strategyNoDevice strategy for the analysismobile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It describes what the analysis identifies, but never states whether the operation is read-only, whether it modifies the site, what permissions are needed, or how results are returned. This leaves important behavioral traits undisclosed.

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?

Two sentences, front-loaded with the core purpose and followed by a compact list of detection targets. No filler or redundancy.

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

Completeness3/5

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

For a two-parameter analysis tool with full schema coverage and no output schema, the description covers purpose and output categories. However, with no annotations and no usage guidance, it omits behavioral context that an agent would need to confidently select and invoke it among many sibling analysis tools.

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 coverage is 100%: the url and strategy parameters are fully described in the schema, including format and enum default. The description adds no additional meaning about parameter syntax, constraints, or the effect of the strategy choice beyond what the schema already provides.

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+resource: get image optimization analysis for a URL, and enumerates the findings (compression, format conversion, lazy-loading, layout shifts). It does not name any sibling or explain how it differs from get_performance_metrics or get_recommendations, so it is clear but lacks sibling differentiation.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of alternatives among the many sibling analysis tools. The only implied usage is that an agent should call it when image optimization analysis is wanted, which is minimal.

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