Skip to main content
Glama

extract_tables

Extract tables from a web page into JSON, CSV or XLSX: headers and rows for each table, with numbers typed. Pass a url or raw HTML. Paid via x402 ($0.003 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) page to read. Send url or html.
htmlNoRaw HTML (up to 1.5 MB) instead of url.
limitNoMaximum tables to return (default 20).
tableNoReturn only this table (1-based index from a previous call).
formatNojson (default), csv (one CSV string per table) or xlsx (one workbook, one sheet per table, base64).
headerNoauto (default: <th>/<thead> for HTML, first non-numeric row for PDF), first = treat the first row as header, none.
orientNojson only: rows = arrays (default) or records = one object per row keyed by header.
numbersNojson only: convert plain numbers such as 1,200 or 3.5 to numbers (default false). XLSX always stores them as numbers.
min_rowsNoSkip tables with fewer rows, header included (default 2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

With zero annotations the description carries the full burden and does so: exact price ($0.003 USDC on Base mainnet, also Polygon/Arbitrum/Solana), that payment is charged on this specific tools/call request, that invalid input is rejected without charge, the 3 free calls/day per IP quota and how the trial is triggered over HTTP vs MCP. It also notes the response includes asOf and source.

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?

Purpose is front-loaded in the first clause, followed by outputs, then payment and trial terms. The payment sentence has awkward nested parentheses ("Base mainnet (also Polygon, Arbitrum and Solana))") but no sentence is filler given the absence of annotations.

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 nine-parameter tool with no output schema, the description covers cost, error behavior, quota, output extras (asOf, source) and the required input mode. Minor gaps remain: it doesn't say what happens when both url and html are supplied, or when neither is, despite required parameters being empty.

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 documents all nine parameters including enums and defaults. The description only restates the url/html duality and the "numbers typed" behavior, adding little meaning beyond the structured fields; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Extract tables from a web page into JSON, CSV or XLSX") and names the output shape (headers and rows per table, typed numbers). It implicitly separates itself from the sibling extract_tables_pdf by scoping to "web page" and "raw HTML", though it never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives operational guidance for invocation ("Pass a url or raw HTML", invalid input rejected without payment, trial quota) but no guidance on when to choose this over extract_tables_pdf or another extraction tool. Usage is implied by the input mode rather than stated as a selection rule.

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