Skip to main content
Glama

Hacker News: search

hackernews_search
Read-only

Search Hacker News stories by keyword to find discussions about a product, project, or topic, ranked by relevance. Returns titles, URLs, points, comment counts, dates, and story IDs.

Instructions

[hackernews] Full-text search of Hacker News stories (not comments) by keyword, ranked by relevance. Use this to find discussions about a product, project or topic; use hackernews_front_page for what is trending now. Returns title, url, points, comment count, date and story id.

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (1-30)
queryYesKeywords to match in story titles and text, e.g. 'model context protocol'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • changedInput schema / properties / query / description
      Previous value: -"Keywords"New value: +"Keywords to match in story titles and text, e.g. 'model context protocol'"
  2. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds non-obvious context beyond that: comments are excluded from the index and results are relevance-ranked, and it enumerates the returned fields. It does not mention rate limits or result-cap behavior, so it stops short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both earning their place: scope and ranking first, then routing to the sibling, then return shape. No filler or repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only search with no output schema, the description supplies everything needed to call it correctly and even describes the return fields. Nothing material is missing.

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 both the query string and the 1-30 limit are already documented in structured fields. The description only adds the relevance-ranking semantics and confirms matching is against titles and text; baseline 3 is appropriate.

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 (full-text search of Hacker News stories) plus two distinguishing scopes: stories not comments, and ranked by relevance. An agent can separate it from hackernews_front_page without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the use case ('find discussions about a product, project or topic') and names the alternative with its condition ('use hackernews_front_page for what is trending now'). Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.