Skip to main content
Glama

ScorpTech x402 Tools

Html Tables

html_tables
Read-onlyIdempotent

Extract HTML tables from a public URL (SSRF-safe fetch) or an HTML string into clean JSON: header detection (thead or leading th rows, multi-row headers joined), rowspan / colspan expansion, captions, rows as objects keyed by header or as arrays, optional number parsing ("$1,234.50", "45%"), and table choice by index or CSS selector (e.g. table.wikitable). Layout tables with too few rows are skipped. Returns JSON with: source, tablesFound, returned, skipped, tables. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/html-tables

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "html_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) page (or use html)
htmlNoHTML source instead of url
indexNoOnly the table at this 0-based position (after selector)
formatNoobjects
headerNoauto = thead / all-th rows; first = first row is the header; none = no headerauto
maxRowsNoRows returned per table
minRowsNoSkip tables with fewer data rows
numbersNoConvert numeric-looking cells to numbers
selectorNoCSS selector choosing tables, e.g. table.wikitable or #results table
maxTablesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. Beyond that, the description adds real value: SSRF-safe fetching, skipping of layout tables with too few rows, the returned field set (source, tablesFound, returned, skipped, tables), and per-call pricing with an alternate HTTPS endpoint. It stops short of describing error or failure semantics.

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 capability summary is front-loaded before the return structure and pricing note, and every clause carries information. The main weakness is density — one long comma-chained sentence covers all extraction features, which is harder to scan than a short bulleted breakdown would be.

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 10 parameters, 80% schema coverage, and no output schema, the description does the work an output schema would: it names the response fields and their meaning, and it covers edge behavior (skipped layout tables, minRows interplay). Pricing and the mirrored HTTPS endpoint round out what an agent needs before calling.

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?

Schema coverage is 80%, so the schema already carries most parameter meaning. The description still adds interpretive detail beyond the schema: it explains that header detection joins multi-row headers, that numbers converts values like "$1,234.50" and "45%", and that selector accepts forms like #results table — clarifying the enum and interaction between index and selector.

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 leads with a specific verb and resource ("Extract HTML tables") and then enumerates exactly what extraction entails: header detection, rowspan/colspan expansion, captions, object/array output, number parsing, and table selection. This makes it immediately distinguishable from siblings like html_to_markdown or html_select without opening any 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?

It clearly states the two input modes ("public http(s) page (or use html)") and how table targeting works (index or CSS selector such as table.wikitable), plus the behavior of skipping layout tables. What it lacks is explicit routing guidance against named alternatives or exclusions, so the agent must infer that this tool is for structured table output versus markup conversion.

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