Skip to main content
Glama

Tables of a web page as JSON

extract_html_tables
Read-only

Tables of a web page as JSON. Extract tables. Turn the HTML tables of any web page into clean JSON (rows or objects with headers) or download a table as CSV.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPage URL (e.g. https://en.wikipedia.org/wiki/Euro)
indexNoTable number (0 = first) (e.g. 0)
formatNojson or csv (e.g. json)
objectsNotrue = rows as objects keyed by header (e.g. true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds output-shape context (rows, or objects keyed by headers, or CSV download), which is useful, but says nothing about failure modes such as pages with no tables or JS-rendered tables.

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

Conciseness3/5

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

The first two fragments ('Tables of a web page as JSON. Extract tables.') restate the title and name redundantly before the one sentence that earns its place. The informative clause is not front-loaded, so there is noticeable waste.

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

Completeness3/5

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

With no output schema, the description must carry return-value information, and it partially does by naming JSON row/object and CSV outputs. However, for a 4-parameter tool it omits index behavior, empty-table handling, and any pagination or size limits.

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 all four parameters are already documented, giving a baseline of 3. The description adds a small amount of connective meaning by mapping 'rows or objects with headers' to the objects flag and 'CSV' to the format flag, but no syntax or default details beyond the schema.

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 states a specific verb (extract/turn into) and resource (HTML tables of a web page) and even names the output shapes (JSON rows/objects, or CSV). It is distinct from sibling extractors like extract_links and extract_keywords, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing tells the agent when to prefer this over extract_links or extract_keywords, nor how to choose JSON vs CSV output. The only implied usage is 'for a page that has tables'.

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