Skip to main content
Glama

magnova/lighthouse-audit

magnova--lighthouse-audit
Destructive

This tool calls the Actor "magnova/lighthouse-audit" and retrieves its output results. Actor description: Bulk Google Lighthouse audits for any list of URLs: performance, SEO, accessibility and best-practices scores, LCP, CLS, TBT, top fixes, budgets and score change since last run. Mobile or desktop. $20 per 1,000 audits.

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": {
      "urls": "<urls>"
    },
    "name": "magnova--lighthouse-audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYes**REQUIRED** Public web pages to audit, one per line. Example: https://www.apify.com. A bare domain like example.com is treated as https://example.com. Example values: ["https://example.com","https://www.wikipedia.org"]
deviceNoEmulated device. 'mobile' matches Google's mobile-first scoring, 'desktop' uses desktop screen and network, 'both' audits each URL twice (two charged audits). Example values: "mobile"mobile
waitSecsNoMax seconds (0–45, default 30) to cap the wait for the Actor run to reach terminal state. For long-running Actors the response returns at the cap with the current run status; follow `nextStep` to poll via get-actor-run. Set to 0 to fire-and-forget.
categoriesNoWhich Lighthouse categories to score. Leave empty for all four: performance, accessibility, best-practices, seo. Example values: ["performance","accessibility","best-practices","seo"]
historyStoreNoOptional. Pick (or create) a key-value store in your account where the Actor keeps each URL's last score, so 'Compare with previous run' works across runs. If empty, the Actor tries its own 'lighthouse-audit-history' store and skips comparison if that is not allowed. Example: a store named lighthouse-history.
maxOpportunitiesNoHow many of the biggest speed opportunities (with estimated savings) to include per page. Example values: 5
performanceBudgetNoOptional thresholds. Each result gets budgetPass true/false and a list of violations. Keys: minPerformanceScore, maxLcpMs, maxCls, maxTbtMs, minSeoScore, minAccessibilityScore. Example: {"minPerformanceScore": 80, "maxLcpMs": 2500}
compareWithPreviousNoRemember each URL's last performance score in your account and output previousPerformanceScore and performanceScoreChange. Ideal for scheduled monitoring. Example values: true

Output Schema

NameRequiredDescriptionDefault
tipNoAdvisory guidance RAG Web Browser wrote to its key-value store under the reserved "TIP" key
runIdYesActor run ID
statsNoRun statistics
statusYesRun status: READY | RUNNING | TIMING-OUT | TIMED-OUT | ABORTING | ABORTED | SUCCEEDED | FAILED
actorIdYesStable Apify Actor ID from the run record
summaryYesPast-tense summary of the run state
exitCodeNoActor process exit code; populated for terminal states (especially FAILED)
nextStepYesOne primary follow-up action with identifiers interpolated
storagesYesDataset and key-value store metadata, keyed by alias. "default" is always the primary entry.
actorNameNo"username/actor-name"
startedAtNoISO timestamp when the run started
finishedAtNoISO timestamp when the run finished (terminal states only)
statusMessageNoPass-through from Apify run.statusMessage
apifyConsoleUrlNoPersonalized Apify Console link to the run; present only for Console sessions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / storages / properties / datasets / properties / default / properties / itemsSchema
      Removed value: -{
      -  "description": "JSON Schema for rows in the dataset at `storages.datasets.default.id` — describes row shape only; the rows themselves are NOT returned inline in this response. Inferred from this Actor's historical successful runs. To fetch actual rows, call `get-dataset-items` with the dataset id and a `fields` projection drawn from this schema.",
      -  "properties": {
      -    "accessibilityScore": {
      -      "type": "number"
      -    },
      -    "auditedAt": {
      -      "type": "string"
      -    },
      -    "benchmarkIndex": {
      -      "type": "number"
      -    },
      -    "bestPracticesScore": {
      -      "type": "number"
      -    },
      -    "budgetPass": {
      -      "type": "null"
      -    },
      -    "budgetViolations": {
      -      "items": {},
      -      "type": "array"
      -    },
      -    "cls": {
      -      "type": "number"
      -    },
      -    "coreWebVitalsPass": {
      -      "type": "boolean"
      -    },
      -    "device": {
      -      "type": "string"
      -    },
      -    "domSize": {
      -      "type": "number"
      -    },
      -    "durationSec": {
      -      "type": "number"
      -    },
      -    "error": {
      -      "type": "null"
      -    },
      -    "failedAudits": {
      -      "items": {
      -        "properties": {
      -          "category": {
      -            "type": "string"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "title": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "fcpMs": {
      -      "type": "number"
      -    },
      -    "finalUrl": {
      -      "type": "string"
      -    },
      -    "lcpMs": {
      -      "type": "number"
      -    },
      -    "lighthouseVersion": {
      -      "type": "string"
      -    },
      -    "performanceScore": {
      -      "type": "number"
      -    },
      -    "performanceScoreChange": {
      -      "type": "null"
      -    },
      -    "previousAuditedAt": {
      -      "type": "null"
      -    },
      -    "previousPerformanceScore": {
      -      "type": "null"
      -    },
      -    "requestCount": {
      -      "type": "number"
      -    },
      -    "seoScore": {
      -      "type": "number"
      -    },
      -    "speedIndexMs": {
      -      "type": "number"
      -    },
      -    "tbtMs": {
      -      "type": "number"
      -    },
      -    "topOpportunities": {
      -      "items": {
      -        "properties": {
      -          "id": {
      -            "type": "string"
      -          },
      -          "savingsBytes": {
      -            "type": "number"
      -          },
      -          "savingsMs": {
      -            "type": "number"
      -          },
      -          "title": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "totalByteWeight": {
      -      "type": "number"
      -    },
      -    "ttfbMs": {
      -      "type": "number"
      -    },
      -    "url": {
      -      "type": "string"
      -    },
      -    "warnings": {
      -      "items": {},
      -      "type": "array"
      -    }
      -  },
      -  "type": "object"
      -}
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the write-ish profile is covered. The description adds genuinely non-structured behavior: per-audit pricing, the mobile/desktop double-charge rule, and that comparison/history relies on writes to a key-value store in the caller's account. It does not restate the run-wait cap behavior described in 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with 'calls the Actor and retrieves its output', then a dense capability/cost summary. The 'Actor description:' scaffolding is slightly mechanical but no sentence is wasted.

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?

With an output schema present and full schema coverage, the description needn't explain return values, and it adequately conveys capability, output dimensions and pricing for a moderately complex 8-parameter, nested-object tool. The remaining gap is positioning against the sibling tools that can also fetch run results or datasets.

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 the schema already documents all eight parameters including waitSecs polling and the budget object keys. The description adds only marginal semantic value (mobile vs desktop scoring basis, cost implication of 'both'), 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?

The description gives a specific verb+resource: it calls the Actor "magnova/lighthouse-audit" and returns its output, then enumerates exactly what that Actor produces (Lighthouse performance/SEO/accessibility/best-practices scores, LCP, CLS, TBT, top fixes, budgets, score change). This distinguishes it from generic siblings like get-actor-run or get-dataset-items, though those names are never referenced directly.

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?

Usage is only implied: supply a list of URLs and get audits back. It adds useful cost framing ($20 per 1,000 audits, 'both' device = two charged audits) that steers volume-sensitive decisions, but it never states when to prefer this over the generic get-actor-run / get-dataset-items siblings.

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.