You're viewing a demo portfolio

Join the waitlist
PRSM

enrich_html

Active

Tool of ShopGraph

declared in 1.0.0

Extract product data from raw HTML you already have (no HTTP fetch needed). Ideal when using Bright Data, Firecrawl, or any scraping API — pipe the HTML through ShopGraph for structured product data. Uses schema.org + LLM fallback. Costs $0.02 per call (cached results are free). Each field carries verification metadata in _shopgraph: provenance (field_method — which source/tier produced it: schema_org, llm, or hybrid), freshness (field_freshness — recency + volatility_class, for volatile fields like price & availability), and abstain (a field is null when ShopGraph cannot verify it on the page). Rely on provenance, freshness, and the abstain signal to decide what to trust.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "html",
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Original URL of the page (used for context and caching)"
    },
    "html": {
      "type": "string",
      "description": "Raw HTML content of the product page"
    },
    "format": {
      "enum": [
        "default",
        "ucp"
      ],
      "type": "string",
      "default": "default",
      "description": "Output format. \"ucp\" returns UCP line_item format. Default: \"default\"."
    },
    "force_refresh": {
      "type": "boolean",
      "description": "Bypass cache entirely. Always triggers live extraction. Costs 3x credits."
    },
    "include_score": {
      "type": "boolean",
      "description": "Include agent-readiness score in response."
    },
    "payment_method_id": {
      "type": "string",
      "description": "Stripe payment method ID for MPP payment"
    },
    "minimum_confidence": {
      "type": "number",
      "maximum": 1,
      "minimum": 0,
      "description": "Auto-refresh if any cached field's DECAYED confidence falls below this threshold."
    },
    "strict_confidence_threshold": {
      "type": "number",
      "maximum": 1,
      "minimum": 0,
      "description": "Fields below this confidence will be nulled with explanation. Default: off."
    }
  },
  "additionalProperties": false
}

What this tool wraps· 2 endpoints

min confidence0.700.50

Parent server

ShopGraph

https://github.com/laundromatic/shopgraph

2/7 registries
View full server →