Skip to main content
Glama

run_lighthouse

Run a real Google Lighthouse audit against a URL. Returns performance, accessibility, SEO, and best-practices scores with Core Web Vitals metrics and a full JSON report.

Instructions

Run a real Google Lighthouse audit against a URL. Returns 0-100 category scores, Core Web Vitals lab metrics (LCP, TBT, CLS, Speed Index), and the failed audits, and saves the full JSON report. Requires Node.js — finds it on PATH or auto-detects nvm installs (~/.nvm); if none exists, returns the exact nvm install commands. Launches its own headless Chrome: no session or project auth state applies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to audit
deviceNoEmulation preset (default: mobile, like Lighthouse's default)
timeoutNoMax seconds to wait (default: 180)
categoriesNoCategories to audit (default: all four)
Behavior4/5

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

The description fully discloses that the tool launches its own headless Chrome, ignores session/auth state, and handles Node.js detection along with failure recovery commands. Since no annotations are provided, this transparency is critical and well-covered.

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 highly concise, front-loads the main purpose, and each sentence adds value—covering behavior, prerequisites, return values, and error handling without redundancy.

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?

Given the complexity of running Lighthouse (Node.js, Chrome), the description covers essential context: return values, metrics, Chrome isolation, and setup requirements. The lack of an output schema is compensated by detailing what is returned (scores, metrics, failed audits, saved report).

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?

All 4 parameters have clear descriptions in the input schema (100% coverage). The description adds context about the tool's outputs but does not augment the meaning of individual parameters beyond the schema, so baseline score of 3 is appropriate.

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 clearly states the tool runs a real Google Lighthouse audit against a URL, returning scores, Core Web Vitals, and saving a full JSON report. It has no clear sibling duplicates; among many session/tool/test tools, this one is uniquely identified.

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 explains prerequisite (Node.js) and behavior (headless Chrome, no session/auth), as well as auto-detection and error recovery. It does not explicitly state when to avoid use, but the context is sufficient for correct invocation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/segentic-lab/periscope-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server