Skip to main content
Glama

hn top

hn_top
Read-only

Hacker News: the current top, new, best, Ask HN or Show HN stories with points and comment counts, or search all stories by keyword (by relevance or date). Track what developers are talking about. Costs $0.002 USDC per call (x402).

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

Input Schema

NameRequiredDescriptionDefault
qNo
listNotop (default), new, best, ask, show
sortNo
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly and openWorld, so the description does not need to restate safety. It adds genuinely new behavioral context the annotations cannot convey: the pay-per-call model and exact price ($0.002 USDC via x402), which affects whether an agent should call it. It doesn't mention pagination or result limits, keeping it 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.

Conciseness4/5

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

The core capability and the mode enumeration are front-loaded in the first sentence, and the pricing caveat is a short second clause. 'Track what developers are talking about' is mild filler but harmless. Overall tight and well-ordered.

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 4-parameter read tool with no output schema and sparse schema descriptions, the description covers modes, search vs. browse, sort semantics, and cost — enough for correct invocation. The missing piece is the limit parameter's behavior, which leaves a small gap.

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 only 25%, so the description carries real weight. It documents the list values (top default, new, best, ask, show), that q is a keyword search, and that sort can be by relevance or date — all beyond the bare schema entry for list and the undocumented sort. Only limit's size/semantics remain unexplained.

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?

The description names a specific verb (fetch) and resource (Hacker News stories) and enumerates the modes it supports: top, new, best, Ask HN, Show HN, plus keyword search. It also states what the payload contains (points and comment counts), so an agent knows exactly what the tool does without opening any schema.

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 usable context for selection: browsing current stories versus searching all stories by keyword, and the framing 'Track what developers are talking about.' There is no explicit when-not guidance or named alternative (e.g., a general news tool), but the mode split is sufficient to pick the right invocation.

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