Skip to main content
Glama

API Keg — DOM Harvest & Table Grid Extractor

Auto-Harvest Tables, Repeating Cards & Metadata

harvest_page_structures
Read-onlyIdempotent

Zero-selector structural HTML harvester: extracts canonical/OpenGraph/Twitter metadata, Schema.org JSON-LD, normalized 2D tables (resolving multi-header rowspan/colspan merges + cell links), and repeating sibling card collections across 100-500 items without truncation. Pricing: $0.002 USD per HTML page structure harvest (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

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

Input Schema

NameRequiredDescriptionDefault
htmlYesRaw HTML page or fragment to tokenize and harvest into structured JSON.
baseUrlNoOptional origin/page URL used to resolve relative href, src, canonical, and OpenGraph URLs.
includeMatrixNoInclude the resolved 2D string matrix alongside typed row records on each extracted table.
minCollectionItemsNoMinimum repeating sibling cards required to emit an auto-detected repeatingCollection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial behavioral context beyond them: per-page pricing, an x402 micropayment model, a free REST dry-run validation path, and a 100-500 item no-truncation guarantee. It also signals table-merge handling and link resolution, which materially affects interpretation 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 dense but front-loaded: capability first, then concrete extraction details, then pricing and validation. Parentheticals around rowspan/colspan and micropayment add useful precision, though the REST-specific dry_run sentence is somewhat detached from the rest of the tool description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, read-only extraction tool with no output schema, the description does a good job naming the categories of structured data returned and specifying scale limits, pricing, and a validation path. It stops short of describing the output JSON shape or error behavior, but no major invocation-critical information is 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 description coverage is 100%, so the schema already explains html, baseUrl, includeMatrix, and minCollectionItems well. The description adds almost no parameter-level meaning beyond a REST dry_run note, so the baseline of 3 is appropriate.

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 states a precise verb+resource: a zero-selector structural HTML harvester, and then enumerates exactly what it extracts (metadata, JSON-LD, 2D tables, repeating card collections). That level of specificity distinguishes it clearly from a schema/selector-driven sibling like extract_by_schema.

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 phrase 'Zero-selector' gives a clear usage context: call this when you do not have selectors or a schema. It also mentions REST dry_run for free schema validation, but it does not explicitly name extract_by_schema or state when the alternative should be preferred.

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