Skip to main content
Glama

OnchainCheck Web

Extract tables

extract_tables
Read-onlyIdempotent

Extract the tables from a document as typed JSON: send text (CSV, TSV, semicolon or pipe separated, Markdown tables or HTML), html, or a url to a web page or CSV file. Each table gets headers (multi-row headers joined, colspan and rowspan expanded), column types (number, percent, currency, date, boolean, string) and rows with parsed values. Deterministic, no model; up to 20 tables and 500 rows each. Costs $0.005 USDC on Base via x402.

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
urlNoA public web page or CSV file, instead of text
htmlNoHTML, instead of text
textNoCSV, TSV, Markdown or HTML text containing tables
limitNoRows returned per table (default 100)

Output Schema

NameRequiredDescriptionDefault
foundNonumber, e.g. 1
formatNostring, e.g. "text"
tablesNoarray
skippedNonumber, e.g. 0
checkedAtNostring, e.g. "2026-11-19T06:34:50.132Z"

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, open-world), yet the description still earns credit by adding what annotations cannot: deterministic no-model extraction, header normalization rules (multi-row headers joined, colspan/rowspan expanded), the emitted column types, throughput caps, and a concrete per-call cost ($0.005 USDC on Base via x402) that changes how an agent should budget calls. This is rich behavioral context beyond the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with the action and inputs, then output shape, then guarantees and constraints, then price. No sentence is filler; even the payment note is operationally necessary.

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?

An output schema exists, so the description is not obliged to detail return values — and it wisely just sketches headers/types/rows. Combined with full annotation coverage, documented limits, and pricing, an agent has everything needed to call this confidently and estimate cost.

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 coverage is 100%, so the baseline is 3 and the schema already documents all four parameters. The description does add some value by widening the accepted delimiters to semicolon and pipe-separated text and clarifying that the url accepts either a web page or a CSV file. However, the description's 'up to 500 rows each' sits alongside a schema 'limit' with default 100 and never explains the relationship, leaving the key parameter's effect slightly murky.

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?

The description opens with a specific verb and resource — 'Extract the tables from a document as typed JSON' — and enumerates the accepted input forms (CSV, TSV, semicolon/pipe separated, Markdown, HTML, URL). That is far more precise than the title alone. It never names a sibling such as document_to_markdown or web_extract to sharpen the boundary, so it sits at 4 rather than 5.

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 tells the agent which input mode to use and when: 'send text..., html, or a url to a web page or CSV file', which maps each caller situation onto an argument. It also discloses operating limits ('up to 20 tables and 500 rows each') and the price. It stops short of stating when to prefer this over a sibling extraction tool, so 4 is appropriate.

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