Skip to main content
Glama

SiteCheck Web Intel

One Hacker News item by numeric id from the official HN

search_hacker_news_item_by_id
Read-only

One Hacker News item by numeric id from the official HN API (Firebase, public, no key): type, title, author, time, score, comment count, link and plain text. Deleted or unknown ids return 404. Related tools on this server, for a different need: search_hacker_news_stories when you need Hacker News story search through the official HN Search. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "id": "<id>"
    },
    "name": "search_hacker_news_item_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNumeric HN item id, e.g. 8863

Output Schema

NameRequiredDescriptionDefault
byNo
idNo
urlNo
textNo
timeNo
typeNo
hnUrlNo
scoreNo
titleNo
sourceNo
commentsNo
checkedAtNo
replyCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint it discloses that the API is public and keyless, that deleted or unknown ids return 404, and the billing model ($0.002 per successful call via x402, failures uncharged) — exactly the cost and failure semantics an agent cannot infer from annotations.

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?

Front-loaded with the resource and returned fields, then error behavior, then the sibling alternative, then pricing. The pricing clause is dense (network list) but carries real decision value, so nothing is clearly wasteful.

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 one-parameter lookup with a full output schema and covering annotations, the description supplies everything else an agent needs: what is returned at a high level, what happens on a bad id, whether auth is required, and what the call costs.

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?

The single `id` parameter is fully documented in the schema (100% coverage, with an example value), and the description only restates that it is a numeric HN item id. With the schema doing the heavy lifting, this is the expected baseline.

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 (a single Hacker News item), the identifier type (numeric id), and the backing source (official HN API on Firebase), and it distinguishes itself from search_hacker_news_stories. The verb 'fetch/retrieve' is only implied rather than stated, which keeps it just short of a 5.

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 explicitly routes the agent away to search_hacker_news_stories 'when you need Hacker News story search through the official HN Search,' and the required numeric id plus the 404 note make the applicable context clear. It does not state the inverse condition (use this tool when you already hold an id), so the routing is only one-directional.

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