Skip to main content
Glama

Page Metadata Extractor

html_metadata_extractor

Extracts HTML metadata, OpenGraph, Twitter Cards, headings, word count, links, language (lang, hreflang), title and description lengths, image alt coverage (images: with_alt, empty_alt for decorative images, missing_alt) and JSON-LD (json_ld: blocks, how many parse as JSON, their @type values, and rich_results: each Product, Article, BreadcrumbList, Organization, LocalBusiness, Recipe, Event, VideoObject and SoftwareApplication (including MobileApplication/WebApplication) entity checked against the properties Google documents as required and recommended, with meets_required, missing_required, missing_recommended and unverified_required; rich_results_version names the evaluator; FAQPage is reported as retired because Google no longer shows the FAQ rich result; JSON-LD only, field checks do not verify authentic reviews, every schema.org value or Google policy compliance, and never guarantee a rich result) from a URL. url is the URL you asked for; final_url is where the request ended, with final_status, the redirect chain (status, url, location per hop) and redirect_host_changed, so the metadata can be tied to the HTTP response it came from. response_headers lists the content, caching, indexing and transport-security headers (never cookies or credentials); response_header_repeats names any of them the server sent more than once, with the count, values and what the repeat means, and response_header_clips names any whose value was cut at the reported bound, with the length of the whole value. With render true the page is also loaded once in headless Chrome (https pages only) and the result adds rendered: the page as served compared with the page after JavaScript ran (title, meta_description, canonical, robots_meta and h1 raw and rendered with a status of same, javascript_only, changed, removed or absent; word_count, headings and link counts; internal_links_only_rendered lists up to 25 internal addresses only the rendered page links to, which a crawler that does not run scripts cannot find there; javascript_only and changed_by_javascript name what depends on scripts) and rendered.lab, the lab metrics of that one load (time to first byte, first and largest contentful paint, DOMContentLoaded and load times, cumulative layout shift, request count, transfer bytes): lab data from DataFluxor's servers, one run, not Core Web Vitals field data and not a Lighthouse score. device mobile loads it as a phone under Lighthouse's mobile throttling, same price; rendered.lab.device says which device was measured. Credits: 1 per page; 5 with render when the page was rendered (a page that could not be rendered, rendered.status unavailable, is charged 1). The result is returned here and may also be kept for up to 30 days as a completed run: retained.run_id reads it again for free with scraper_run_get (retained.available false says why it was not kept). Saved synchronous results can be evicted earlier when storage is needed; set background true (with an idempotency_key) to start the work as a saved run at once. If the call would outlast the connection (many items, deep or fresh SERPs) or the platform has no free capacity, it is not failed: the result is an accepted answer (accepted true, run_id, state, next_step) and the work runs as a saved run; ask scraper_run_get about run_id (view status) as often as retry_after_seconds says. A batch tool's run is charged item by item as each item finishes (failed items are free); any other run once, when it completes. The same idempotency_key prevents a second charge during its retry window; a later new call may be charged.

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

Input Schema

NameRequiredDescriptionDefault
urlYesTarget webpage URL
deviceNoThe device the browser load emulates, which its lab metrics describe: desktop (1365x900, no throttling) or mobile (a phone under Lighthouse's mobile throttling: 4x CPU slowdown, slow 4G; lab.method states it). Same price. It applies with render true.desktop
renderNoAlso render the page in a headless browser and compare it with the HTML as served, with lab metrics of the load (5 credits instead of 1). https URLs only.
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge.
backgroundNoOptional. true starts this work as a saved background run and answers at once with run_id instead of the result; read it with scraper_run_get. Needs an idempotency_key: the same key returns the same run and never charges twice, for the 30 days the run is kept. Charged like the direct call, as the run's work completes. Without it, a call that would take too long is also answered as a saved run.
idempotency_keyNoOptional retry key bound to this customer and these arguments. Matching retries replay the first result and do not reserve a second credit; the replay says so in billing (replayed true, credits_charged_this_call 0, original_credits_used).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / device
      Added value: +{
      +  "default": "desktop",
      +  "description": "The device the browser load emulates, which its lab metrics describe: desktop (1365x900, no throttling) or mobile (a phone under Lighthouse's mobile throttling: 4x CPU slowdown, slow 4G; lab.method states it). Same price. It applies with render true.",
      +  "enum": [
      +    "desktop",
      +    "mobile"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / render
      Added value: +{
      +  "default": false,
      +  "description": "Also render the page in a headless browser and compare it with the HTML as served, with lab metrics of the load (5 credits instead of 1). https URLs only.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • removedInput schema / properties / render
      Removed value: -{
      -  "default": false,
      -  "description": "Also render the page in a headless browser and compare it with the HTML as served, with lab metrics of the load (5 credits instead of 1). https URLs only.",
      -  "type": "boolean"
      -}
  4. Changed1 schema field changed
    • addedInput schema / properties / render
      Added value: +{
      +  "default": false,
      +  "description": "Also render the page in a headless browser and compare it with the HTML as served, with lab metrics of the load (5 credits instead of 1). https URLs only.",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • removedInput schema / properties / render
      Removed value: -{
      -  "default": false,
      -  "description": "Also render the page in a headless browser and compare it with the HTML as served, with lab metrics of the load (5 credits instead of 1). https URLs only.",
      -  "type": "boolean"
      -}
  6. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (which only say openWorldHint=true, destructiveHint=false, idempotentHint=false), it discloses cost (1 credit, 5 with render, render failures charged 1), 30-day retention with possible early eviction, the accepted/async fallback to a saved run with retry_after_seconds, and per-item batch billing. It also bounds output behavior explicitly ('never cookies or credentials', header clips at a reported bound, redirect chain with redirect_host_changed), which is far more than the annotations provide and never contradicts them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The content is dense with genuinely useful facts, but it is delivered as a handful of enormous run-on sentences with nested parentheses (the first sentence alone spans hundreds of words), so the primary purpose competes with billing, retention and lab-metric caveats. Extraction semantics, cost, async behavior and header caveats are interleaved rather than sectioned, making it hard to scan.

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?

With no output schema and a complex six-parameter tool, the description compensates by describing the returned fields in detail (final_url, redirect chain, response_headers/repeats/clips, rendered diff statuses, rendered.lab metrics and their limits). Nothing an agent needs to invoke it correctly or interpret the result appears to be missing.

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 coverage is 100%, so the schema already documents all six parameters, and the baseline is 3. The description does add a little beyond it — render is https-only, device only applies with render true, background requires an idempotency_key and otherwise a long call is auto-demoted — but most of the parameter prose restates the schema fields rather than redefining them.

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?

It opens with a concrete verb plus resource ('Extracts HTML metadata') and then enumerates the exact surface covered: OpenGraph, Twitter Cards, headings, word count, links, lang/hreflang, image alt coverage and JSON-LD with per-entity rich-result checks. An agent can tell exactly what this returns without opening the schema, and the scope is distinct from sibling extractors like aeo_readiness_check or competitor_gap_extractor.

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?

It gives clear conditional guidance: 'With render true the page is also loaded once in headless Chrome (https pages only)', 'set background true (with an idempotency_key) to start the work as a saved run at once', and it routes follow-up reads to scraper_run_get via retained.run_id. It does not, however, state when to prefer this over a sibling such as aeo_readiness_check or google_index_check, so the guidance is contextual rather than comparative.

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.

Resources