Skip to main content
Glama

Get site audit Lighthouse results

get_audit_lighthouse
Read-only

Get the Lighthouse results from a site audit: performance, accessibility, best practices and SEO scores (0–100) plus LCP, CLS, INP and TTFB for each tested page, on mobile and desktop. Pass url for one page's issues, largest savings first, with the resources behind them. Omit auditId for the most recent audit; an audit has results only when it ran with Lighthouse on. Uses no credits. For crawl issues such as broken links and missing titles, use get_audit_issues.

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": {
      "projectId": "<projectId>"
    },
    "name": "get_audit_lighthouse"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA tested page's URL, exactly as the results list it. Returns that page's result for one device, with the issues Lighthouse found.
deviceNoOnly return this device's results. With url, defaults to mobile.
auditIdNoAudit ID. If omitted, uses the project's most recent audit.
projectIdYesRequired. The FastestRank project ID to scope this call to. Get one from list_projects.

Output Schema

NameRequiredDescriptionDefault
metaNo
auditIdYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description's added value is the operational context it supplies: no credit cost, an empty result when the audit did not run with Lighthouse enabled, and a largest-savings-first ordering for per-page issues. These are non-obvious preconditions an agent would otherwise discover only from a confusing empty response; return shape is partially deferred to the output 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?

Three dense sentences, front-loaded with the returned metrics, then parameter usage, then cost and the sibling alternative. Every clause carries information; nothing is redundant padding despite the long first sentence.

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

Completeness5/5

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

For a four-parameter read tool with full schema coverage, an output schema and safety annotations, the description covers everything an agent needs: scope, defaults, ordering, credit cost, the Lighthouse-enabled precondition and the boundary with get_audit_issues.

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 url, device, auditId and projectId are already documented, including the mobile default and the most-recent-audit fallback. The description largely restates those semantics, adding only that per-page results include the offending resources; that is marginal beyond the schema, so the baseline 3 holds.

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?

Names a specific verb and resource (Lighthouse results from a site audit) and enumerates exactly what comes back: performance, accessibility, best practices and SEO scores plus LCP, CLS, INP and TTFB, per page, on mobile and desktop. It explicitly separates itself from get_audit_issues, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives concrete conditions: pass url to scope to one page's issues, omit auditId to take the most recent audit, and use get_audit_issues instead for crawl problems like broken links and missing titles. That is an explicit when-to-use plus a named alternative and a stated exclusion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.