Skip to main content
Glama

SEO and Keyword Data API

On-page SEO audit of a URL

on_page_audit
Read-onlyIdempotent

On-page SEO audit of one URL: HTTP status, on-page score (0-100), title, meta description, canonical, h1-h3, link, image and word counts, sizes, load timing and about 50 on-page checks (missing h1, duplicate tags, render-blocking resources...), from a page crawl, $0.012 a call. Use when checking a page's technical SEO. The page's text is its own: untrusted. A page that answers 4xx/5xx is a charged answer with status failed. Bad input is a free 400; a refunded crawl is not charged. Price: $0.012 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

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

Input Schema

NameRequiredDescriptionDefault
urlYesAn http(s) URL of a public page (domain name, default port); without a scheme, https:// is assumed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"An absolute http(s) URL of a public page (domain name, default port)."New value: +"An http(s) URL of a public page (domain name, default port); without a scheme, https:// is assumed."
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses cost ($0.012/call), the x402/USDC-on-Base payment path via _meta, and precise charging semantics (4xx/5xx responses are charged with status failed, bad input is a free 400, a refunded crawl is not charged). It also flags the page text as untrusted, which is valuable prompt-injection context for an agent consuming scraped content.

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-loads purpose, then usage, then pricing/trust/failure semantics in a logical order with no filler. The parenthetical list of checks is long but each item signals a concrete capability an agent might be looking for; sentence 3's payment detail is dense but warranted.

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 one-parameter read tool with no output schema, the description covers everything an agent needs: what comes back, what it costs, how payment is passed, what happens on page errors versus bad input, and that page content is untrusted. Nothing material is left implicit.

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?

With a single parameter at 100% schema description coverage, the schema already explains the URL format and https default. The description only restates 'one URL' and adds no syntax or normalization detail, so the baseline 3 applies.

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?

Opens with a specific verb+resource ('On-page SEO audit of one URL') and immediately enumerates the return payload (HTTP status, on-page score, title, meta, canonical, h1-h3, counts, ~50 checks). This clearly separates it from siblings like pagespeed or domain_overview, which cover performance and domain-level data rather than per-page technical SEO checks.

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?

Explicitly states 'Use when checking a page's technical SEO' and scopes input to 'one URL', giving clear context for selection. It does not, however, name when a sibling (e.g. pagespeed for load-performance-only questions) would be preferable, so no exclusion guidance is present.

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.