Skip to main content
Glama

enrich_html

Read-only

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesOriginal URL of the page (used for context and caching)
htmlYesRaw HTML content of the product page
formatNoOutput format. "ucp" returns UCP line_item format. Default: "default".default
force_refreshNoBypass cache entirely. Always triggers live extraction. Costs 3x credits.
include_scoreNoInclude agent-readiness score in response.
payment_method_idNoStripe payment method ID for MPP payment
minimum_confidenceNoAuto-refresh if any cached field's DECAYED confidence falls below this threshold.
strict_confidence_thresholdNoFields below this confidence will be nulled with explanation. Default: off.

TDQS

A4.4/5.0
Behavior5/5

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

The annotations declare readOnlyHint and openWorldHint, but the description adds significant behavioral context: cost per call, caching behavior, the schema.org + LLM dual-extraction strategy, and the _shopgraph verification metadata (provenance, freshness, abstain). This goes far beyond the structured annotations and helps an agent understand trustworthiness of results.

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?

The description is moderately long but front-loaded with a clear purpose sentence, then elaborates on usage, cost, and metadata. Every sentence adds value, though the metadata explanation is dense and may take a couple reads.

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 description thoroughly explains the tool's verification metadata and cost model, but since there is no output schema, it leaves the actual product fields vague ('structured product data' with only price and availability as examples). An agent may not know what fields to expect. This is a notable gap given the lack of an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 8 parameters have descriptions in the schema, so the baseline is 3. The description adds context about caching and costs that informs force_refresh and minimum_confidence, and the mention of 'abstain' explains null field behavior, which aligns with confidence-related params. This is enough to elevate slightly beyond baseline.

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?

The description clearly states the tool extracts product data from raw HTML and distinguishes itself by noting 'no HTTP fetch needed', positioning it as a post-scraping enrichment step. It also mentions the use of schema.org + LLM fallback, making its function specific.

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?

The description explicitly says 'Ideal when using Bright Data, Firecrawl, or any scraping API — pipe the HTML through ShopGraph for structured product data', providing clear context for when to use this tool. While it doesn't name alternative tools or exclusions, the 'raw HTML you already have' phrasing implies it is for pre-fetched content.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: enrich_basic vs enrich_product differ in scope and cost, enrich_html uses raw HTML input, and score_product returns a score. No ambiguity.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with snake_case (enrich_*, score_*), making it easy to infer functionality.

Tool Count5/5

With 4 tools, the set is well-scoped for product data enrichment and scoring, neither too sparse nor too bloated.

Completeness5/5

The tools cover basic extraction, comprehensive extraction, HTML-based extraction, and scoring, leaving no obvious gaps for the domain.

Resources