Skip to main content
Glama

audit_pagespeed_rules

Audit HTML or layout snippets against Core Web Vitals (TBT, CLS, LCP) and SastraPro speed standards to identify performance and SEO issues before deployment.

Instructions

Audit HTML code or layout snippet against Google Core Web Vitals (TBT, CLS, LCP) and SastraPro speed standards.

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": {
      "html": "<html>"
    },
    "name": "audit_pagespeed_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe raw HTML string or layout code to audit for performance and SEO.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses the metrics evaluated, which is useful, but says nothing about what the audit returns (scores? pass/fail? violations list?), how "SastraPro speed standards" are defined, or whether any input is modified. For a tool with zero annotation coverage this leaves significant behavioral gaps.

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?

A single front-loaded sentence with no filler. The only minor cost is unexplained jargon ("SastraPro speed standards") and parenthetical acronyms that consume space without helping an agent act.

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?

The input side is fully covered by the schema, but with no output schema and no annotations, the description should have said what an audit yields and how the result should be interpreted. It is adequate to select the tool but incomplete for invoking and using the response.

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?

Only one parameter exists and the schema description coverage is 100%, so the schema already documents the html field fully. The description's phrasing "HTML code or layout snippet" adds a marginal hint about accepted input breadth but nothing about format constraints or size limits, matching the baseline 3.

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 ("Audit") and a specific resource ("HTML code or layout snippet"), and names the evaluation framework (Core Web Vitals: TBT, CLS, LCP). It does not compare itself to any sibling, so an agent must infer on its own that this is the validation counterpart to the generate_* tools.

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: the word "audit" signals a checking/verification step, which contextually contrasts with the generate_* siblings, but the description never says when to call this versus generate_critical_css or optimize_elementor_json, nor any prerequisites or exclusions.

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