Skip to main content
Glama

hn_search

Search Hacker News stories and comments by keyword, tag and date, with authors, points and links. Paid via x402 ($0.005 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment.

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 or before (YYYY-MM-DD).
fromNoCreated on or after (YYYY-MM-DD).
pageNo0-based page (default 0).
sortNorelevance (default) or date (newest first).
tagsNostory, comment, ask_hn, show_hn or poll (comma-separated; combined with OR).
limitNoHits to return (default 10).
queryYesKeywords to search, e.g. sqlite.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses important non-schema behavior: the x402 payment cost and networks, that invalid input is rejected without payment, and that results include asOf and source. It does not cover rate limits or full output formatting, but the payment and validation behavior are well surfaced.

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 description is three sentences with a clear front-loaded purpose, followed by payment details and validation behavior. Every sentence contributes useful information, and there is no redundant or filler wording.

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?

For a seven-parameter search tool with no annotations and no output schema, the description supplies the essential context an agent needs: what it searches, that it is paid, what invalid input does, and some returned metadata. The schema covers parameter details, but output and pagination behavior remain somewhat implicit.

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 description coverage is 100%, so the input schema already documents every parameter, including defaults, enums, date formats, and page bounds. The description mentions keyword, tag, and date at a high level but adds no parameter-level semantics beyond the schema. A baseline 3 is appropriate when the schema does the detailed work.

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 and resource: search Hacker News stories and comments by keyword, tag, and date. It clearly differentiates itself from browsing tools like a front page or thread viewer by emphasizing searchable content and filters. It stops short of explicitly naming sibling alternatives, so it is clear but not maximally differentiated.

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 implies the tool is used when searching HN content by keyword, tag, or date, and mentions payment upfront. However, it gives no explicit when-to-use versus when-not-to-use guidance and does not name alternatives such as hn_front_page or hn_thread. Usage is inferable but not directly stated.

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