Skip to main content
Glama

ScorpTech x402 Tools

Hn Search

hn_search
Read-onlyIdempotent

Search Hacker News stories and comments (Algolia HN index): by relevance or newest first, with date range, story/comment/Ask HN/Show HN filter, author and minimum points. Returns title, URL, points, comment count, author, time, comment text and HN links. Returns JSON with: totalHits, count, hits. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/hn-search

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": {
      "query": "<query>"
    },
    "name": "hn_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoCreated on/before YYYY-MM-DD
fromNoCreated on/after YYYY-MM-DD
pageNoPage number (0-49)
sortNorelevance (default) or date (newest first)
typeNoall (default), story, comment, ask_hn, show_hn or poll
exactNoDisable typo tolerance (default true when sort=date, false otherwise)
limitNoResults per page (1-50, default 20)
queryYesSearch text
authorNoHN username
minPointsNoMinimum points

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), but the description adds genuinely non-obvious behavior: a $0.01 USDC charge per successful call via x402 on Base or Solana, and an equivalent HTTPS endpoint. That pricing/protocol disclosure is exactly the kind of context annotations cannot convey; only rate limits and payment-failure behavior are left unstated.

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?

Well front-loaded: purpose first, then returned fields, response shape, price, and alternate endpoint. Every sentence carries information, though the 'Returns title, URL, points...' line and the 'Returns JSON with: totalHits, count, hits' line are two adjacent return descriptions that could be merged.

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 10 parameters and no output schema, the description correctly compensates by documenting both the returned fields and the JSON envelope, plus the payment requirement. Coverage is strong; error/payment-failure behavior and any rate limits are the only meaningful omissions.

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 every parameter is already documented in structured form with enums and defaults. The description restates the filter set in prose (sort, date range, type, author, minPoints) but adds no syntax, format, or semantic detail beyond what the schema provides, so the baseline of 3 applies.

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 a specific verb and resource: search Hacker News stories and comments via the Algolia HN index. The data source plus the described filters (date range, type, author, minPoints) make it unmistakable against sibling search tools like arxiv_search or pubmed_search, which target different corpora.

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?

The description gives clear context for when this applies (HN content search) and enumerates the modes available (relevance vs newest-first, story/comment/Ask HN/Show HN filtering). It stops short of explicit when-not-to-use guidance or contrasting a named alternative, which keeps it out of the 5 tier.

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