Skip to main content
Glama

ScorpTech x402 Tools

Html Select

html_select
Read-onlyIdempotent

Scrape a public page (SSRF-safe fetch) or an HTML string with a CSS selector (CSS3 plus :has, :contains, :nth-child(an+b), attribute operators) or raw XPath: returns each match's text, attributes and optionally outer HTML, or just one attribute (href / src resolved to absolute URLs). Also returns the XPath the selector compiled to. Like querySelectorAll without a browser. Returns JSON with: source, selector, xpath, count, matches, truncated. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/html-select

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

Input Schema

NameRequiredDescriptionDefault
urlNo
attrNoReturn only this attribute per match (href/src made absolute)
htmlNoHTML source instead of url
limitNo
xpathNoXPath 1.0 expression instead of selector
maxTextNo
selectorNoCSS selector (or use xpath)
outerHtmlNoInclude each match's outer HTML

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnly/openWorld/idempotent, but the description adds real context beyond them: SSRF-safe fetching, a truncation signal in the output, absolute-URL resolution, and a per-call price with x402 payment on Base/Solana plus an HTTPS endpoint. It does not say what triggers truncation or how payment failure surfaces, keeping it at 4.

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?

Front-loaded with the action and input modes, then output shape, then cost and endpoint. Dense but every clause carries information an agent needs; nothing is redundant with the name or title.

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?

With 8 parameters and no output schema, enumerating the return keys (source, selector, xpath, count, matches, truncated) is exactly the right compensation. The gap is the absence of any statement about required-input combinations (url or html, selector or xpath) and about how limit/maxText bound the result size.

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 63%, and the description adds value on selector syntax (:has, :contains, :nth-child(an+b), attribute operators) and attr normalization. However, it says nothing about limit, maxText, or their defaults and their relationship to the 'truncated' flag, leaving the most behaviorally consequential parameters to terse schema notes.

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?

States specific verbs and resources: scrape a public page or HTML string, with a CSS selector or raw XPath, returning matches' text/attributes/outer HTML, plus the compiled XPath. 'Like querySelectorAll without a browser' cleanly separates it from html_tables, html_sanitize and html_to_markdown, which transform rather than select.

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?

Names the two input modes (url vs html) and the two selector languages (selector vs xpath, with 'instead of' implying mutual exclusivity), and explains when to use attr (single attribute, href/src made absolute). No explicit when-not guidance or routing to specific siblings, so it stops short of 5.

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