Skip to main content
Glama

Groundsocial

Search Hacker News

hackernews_search_stories
Read-onlyIdempotent

Search Hacker News stories or comments, by relevance or date.

Full-text search over Hacker News. tags filters by kind (story, the default; comment, poll, show_hn, ask_hn, front_page, author_, story_; comma is AND, parentheses OR). sort=relevance (default) or date (newest first). numericFilters on created_at_i, points or num_comments (points>100). since/until filter by date server-side. Pages are 0-based; nbPages says how many there are.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": {
      "q": "<q>"
    },
    "name": "hackernews_search_stories"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch terms.
pageNoPage number, 0 to 999 (0 is the first page). Defaults to 0.
sortNorelevance (default) or date.
tagsNoAlgolia tags. Defaults to story.
sinceNoOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp.
untilNoOnly rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp.
hitsPerPageNoHits per page, 1 to 1000. Defaults to 30.
numericFiltersNoe.g. points>100,created_at_i>1700000000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, and the description adds value on top: 1 credit per call with automatic refund on failure, public data only, and the presence of cost_credits/credits_remaining in results. It also discloses pagination behavior (0-based pages, nbPages tells the count), all of which the structured fields do not convey.

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?

The description is front-loaded with the purpose, then moves through filtering, sorting, pagination and cost in a logical order with no filler. There is minor redundancy — the first sentence already implies 'full-text search over Hacker News' and the 'tags defaults to story' idea is stated twice across the text and schema.

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 an 8-parameter search tool with no output schema, the definition covers filtering semantics, defaults, pagination limits, cost and the meta fields returned in results. It does not describe the shape of an individual hit (title, url, author, points), which is the main remaining gap for an agent deciding how to consume results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description meaningfully extends it: tags composition rules (comma is AND, parentheses OR, author_<user> and story_<id> forms), sort=date meaning newest-first, which fields numericFilters accepts (created_at_i, points, num_comments), and that since/until filter server-side. The one gap is that numericFilters operator variety beyond the single example is not spelled out.

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 opening sentence names a specific verb and resource ('Search Hacker News stories or comments') and the second clarifies the mechanism ('Full-text search over Hacker News'), so it is clearly a query tool rather than a fetch-by-id tool like hackernews_stories_get. It stops short of naming a sibling to contrast with, so it lands just under the top mark.

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?

It gives clear operational context: search by relevance or date, stories are the default kind while comments/polls/author feeds require tags, and date or numeric constraints should go to since/until and numericFilters rather than client-side. It never states an explicit when-not-to-use or points the agent to an alternative tool, which keeps it at 4 rather than 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.