Skip to main content
Glama

Hacker News

hacker_news
Read-only

Fetch current front-page stories or search matching posts with points, comment counts, and links to see what developers are discussing now.

Instructions

Hacker News stories with points, comment counts and links. Without a query: the current front page. With a query: matching stories. Use for what developers are discussing right now.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hacker_news"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNomax results (default 10)
queryNosearch terms; omit for the front page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds the default front-page behavior and the shape of returned items, but says nothing about how query results are ranked (relevance vs recency), result freshness, or rate limits — and part of the mode behavior is already stated in the schema.

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?

Three short sentences, front-loaded with the resource and payload, then the mode rules, then the use case. No filler and no repetition beyond the useful mode reminder.

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 two-parameter, read-only lookup with full schema coverage and no output schema, the description covers the essentials: what is returned and what the query flag does. Minor omissions like result ordering and pagination are tolerable at this complexity.

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%, with limit ('max results, default 10') and query ('search terms; omit for the front page') both documented, so the baseline is 3. The description's restatement of query behavior adds little beyond what the schema already says and gives no extra detail on limit usage.

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 names a specific resource (Hacker News stories) and states what comes back (points, comment counts, links), so an agent knows exactly what it retrieves. It does not explicitly contrast itself with siblings like search_stackoverflow or latest_arxiv_papers, but the resource is distinct enough that differentiation is implicit.

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 clearly explains the two operating modes — no query returns the front page, a query returns matching stories — and adds a situational cue ('what developers are discussing right now'). It stops short of naming alternatives or stating when not to use it, so it falls below the top band.

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