Skip to main content
Glama

Agent Data Hub

Hacker News search (stories + comments)

search_hackernews
Read-onlyIdempotent

Search Hacker News stories or comments by keyword, ranked by relevance or newest first, optionally only the last N days. Returns title, linked URL, HN discussion URL, author, points, comment count and date. Use for tech news, launch reactions, developer sentiment and trend research. Price: $0.002 per call (USDC on Base via x402); the first 10 calls per day are free.

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

Input Schema

NameRequiredDescriptionDefault
daysNoOnly items from the last N days (optional)
sortNorelevance (default) or date
typeNostory (default), comment or all
limitNoResults 1–50 (default 10)
queryYesSearch terms, e.g. x402

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 declare read-only, idempotent and open-world behavior, so the description is free to add what they cannot: the fields returned, the two ranking modes, and the paid-call model ($0.002 per call, first 10/day free). The pricing and rate-limit disclosure is exactly the kind of context an agent needs before spending. Pagination beyond a result limit is not addressed, keeping it from a 5.

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?

Three sentences, front-loaded with capability, then return shape, then use cases, then cost. The return-field list earns its place because there is no output schema. The pricing sentence is long but carries required information for a paid tool.

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 no output schema, the description supplies the return shape (title, URL, discussion URL, author, points, comments, date), and it covers the commercial trait that annotations cannot express. For a read-only five-parameter search tool this is close to complete; only edge behavior on empty results or large limits is unstated.

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% and both enums are documented in the schema, so the description only echoes sort ('relevance or newest first') and days ('optionally only the last N days'). It adds no constraint on how query syntax or the 1–50 result range interacts with ranking, so baseline 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?

Opens with a specific verb and resource (search Hacker News stories or comments), states the ranking modes, and names the optional recency window. The HN domain and the story/comment distinction make it immediately distinguishable from the sibling search_* tools for arXiv, GitHub, PubMed and so on.

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?

Gives concrete use cases — tech news, launch reactions, developer sentiment, trend research — which tells an agent the kind of questions this tool answers. It stops short of explicit exclusions or naming which sibling to prefer for a non-tech query, so it is clear context without routing rules.

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