Skip to main content
Glama

x402 Agent Toolkit — Quant Arb, TWSE & Agent Security

deep_extract

[$0.015 USDC via x402] Heavy-duty extraction for AI agents: parses all HTML tables into typed JSON objects/rows, extracts hidden SPA hydration JSON (NEXT_DATA, JSON-LD, embedded data islands), heading outline, OpenGraph metadata, and clean Markdown.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "deep_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL to extract structured tables, SPA JSON & Markdown from.
max_tablesNo
include_markdownNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose a meaningful behavioral fact: this is a paid tool at $0.015 USDC via x402, so the agent knows a payment/authorization step is involved. It is silent on truncation behavior, rate limits, failure modes for non-HTML or JS-only pages, and whether payment is charged on error.

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?

One dense sentence with the cost signal front-loaded, then the capability list. Every clause maps to a real output type, though the parenthetical acronyms (__NEXT_DATA__, JSON-LD) make it slightly dense to scan.

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?

For a three-parameter read tool with no output schema, the output-side coverage is strong, but the paid x402 flow and the max_tables cap are under-explained given x402_preflight exists as a sibling. An agent has enough to attempt the call but not enough to predict cost/limit behavior.

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 only 33% (url is documented, max_tables and include_markdown are not), so the description does some compensating work: 'clean Markdown' clarifies include_markdown's effect. However, max_tables is never explained and 'parses all HTML tables' is in tension with a default cap of 10 tables, which an agent could misread as unlimited extraction.

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?

Names a specific operation (extraction) and enumerates the concrete artifacts returned: typed table JSON, SPA hydration payloads (__NEXT_DATA__, JSON-LD), heading outline, OpenGraph metadata, and Markdown. That enumeration implicitly separates it from a plain markdown converter like web_to_markdown, but no sibling is named 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?

'Heavy-duty' and the explicit output list imply it should be chosen when structural/embedded data matters, but there is no stated when-not to use it, no comparison to safe_fetch or web_to_markdown, and no guidance on when the $0.015 cost is worth paying.

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.