Skip to main content
Glama

extract_tables

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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses deterministic parsing, no model involvement, limits of 20 tables and 500 rows each, typed output, and a $0.005 USDC cost via x402. It stops short of explaining payment mechanics, error behavior, or truncation handling.

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?

The definition is dense but front-loaded and free of filler. Each clause contributes useful information about inputs, output shape, limits, determinism, or cost.

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?

There is no output schema, but the description explains the returned table structure well enough for an agent to know what to expect: headers, expanded spans, column types, and parsed rows. It could be more complete with exact JSON shape or error behavior, but it is substantially complete for this tool.

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 schema already documents all four parameters. The description adds some useful clarification about accepted text formats and URL inputs, but it adds no meaningful detail about the limit parameter beyond the schema.

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 specific verb and resource: 'Extract the tables from a document as typed JSON.' It makes the tool's function immediately distinguishable from general text extraction or AI chat tools.

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?

The description explains the accepted input channels (text, html, url) and formats, which implies usage, but it does not explicitly state when to choose this tool over alternatives such as web_extract or when not to use it.

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