Skip to main content
Glama

audit_url

Read-only

Measure a live page's frame rate, long tasks, and layout thrashing, then scan HTML/CSS/JS for animation anti-patterns to return severity-sorted findings and ranked fixes.

Instructions

Audit any live page as evidence, not a grade: runtime frame/long-task/layout-thrash measurement via an installed Chrome/Edge over raw CDP (no playwright), plus static animation anti-patterns scanned over the page HTML and up to 8 same-origin CSS/JS assets (bounded: 8 assets, 2MB each, 1 request/second shared limiter, default 10s timeouts). Asset refs resolve against the final post-redirect page URL; asset redirects leaving that origin are rejected. Findings are severity-sorted before the 50-item cap, so worst is always present. nextActions ranks the first three fixes. compact=true returns the url, a reduced perf block (fps, droppedFrames, longTasks, layoutThrashing), pre-cap antiPatterns counts (count, worst, high, medium, info), coverage, nextActions and note; omit it for the full findings and full perf. Degrades honestly - perf carries {error} when no browser is available and the static scan reports its own error; neither suppresses the other. Personal, non-commercial use; audit only URLs you are authorised to inspect.

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": "audit_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL of the page to audit
compactNocompact=true returns the url, reduced perf, pre-cap antiPatterns counts, coverage, nextActions and note; omit for full findings and full perf
viewportNoRuntime measurement geometry: desktop = 1280x800 (aegon baseline); mobile = 390x844desktop
timeoutMsNoPer static request timeout in ms (page HTML + each asset)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.14.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / compact
      Added value: +{
      +  "description": "compact=true returns the url, reduced perf, pre-cap antiPatterns counts, coverage, nextActions and note; omit for full findings and full perf",
      +  "type": "boolean"
      +}
  2. Addedv1.13.0

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations, which only cover safety (readOnly, openWorld, non-idempotent, non-destructive): it discloses hard bounds (8 assets, 2MB each, 1 req/s shared limiter, 10s default timeouts), redirect/origin rules for asset resolution, the 50-item cap applied after severity sort, and honest degradation where perf and static scan fail independently. Missing only return-format depth for the non-compact path, which is partly implied.

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?

Front-loaded with the core purpose and evidence-oriented framing before the mechanical detail; every clause is substantive. It is dense and slightly overloaded with parenthetical bounds, and the compact paragraph duplicates the schema description, costing some tightness.

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?

No output schema exists, so the description carries the full return-value burden and does so: it enumerates the compact payload fields, the pre-cap antiPatterns counts, coverage, nextActions ranking of the first three fixes, the note, and the {error} degradation shape for perf. Combined with 100% schema coverage on inputs, an agent has enough to call and interpret it correctly.

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 baseline is 3. The description restates the compact contract almost verbatim from the schema and adds the cap/severity context around it, but adds no new meaning for url, viewport or timeoutMs beyond what the schema already documents.

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?

States a specific verb and resource ('Audit any live page') and immediately scopes it: runtime measurement over raw CDP plus static animation anti-pattern scanning. The 'evidence, not a grade' framing and the mention of no-playwright/CDP distinguishes it from siblings like analyze_page_structure, capture_live_site, record_site_motion and analyze_bundle.

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 implied by the described capability set (runtime perf + static anti-patterns on a live URL) and it adds a legitimate constraint ('audit only URLs you are authorised to inspect', 'personal, non-commercial use'). However it never names a sibling or states an explicit when-not condition, so the agent must infer selection against analyze_page_structure or capture_live_site.

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