Skip to main content
Glama

Hackernews Get Item

hackernews_get_item
Read-onlyIdempotent

Fetch a Hacker News story or comment by ID (e.g., "42153809"). Returns full text, score, author, timestamp, and child replies.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe numeric Hacker News item ID

Output Schema

NameRequiredDescriptionDefault
byNoAuthor username
idYesHN item ID
urlNoItem URL
deadNoWhether item is dead/removed
kidsNoArray of child item IDs
textNoItem text content
timeNoUnix timestamp of item posting
typeNoItem type (story, comment, etc.)
scoreNoItem score/points
titleNoItem title
parentNoParent item ID
deletedNoWhether item is deleted
descendantsNoNumber of child comments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety and side-effect profile is fully covered structurally. The description adds the shape of the payload (full text, score, author, timestamp, child replies), which is useful orientation, but says nothing about rate limits, missing/deleted items, or whether child replies are truncated.

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?

One front-loaded sentence with an embedded example and a return-field list; nothing is padded. The return-field enumeration slightly overlaps the existing output schema, but its length is proportionate and the key action comes first.

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 single-parameter read tool with an output schema and rich annotations, the description supplies the essential action and a preview of the payload. The only shortfall is guidance on behavior for invalid, deleted, or comment-type IDs and on how this differs from the sibling comments tool.

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?

With a single parameter at 100% schema description coverage ("The numeric Hacker News item ID") plus inline examples, the schema already carries the parameter meaning. The description's sample ID "42153809" reinforces the numeric-string form but adds no new constraint or format guidance beyond the schema.

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 states a specific verb and resource ("Fetch a Hacker News story or comment by ID") and enumerates the returned fields, so the agent knows exactly what the tool produces. It only partially differentiates from the sibling get_hn_comments, since "story or comment by ID" implies single-item lookup but never says so explicitly relative to the comments tool.

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

Usage Guidelines3/5

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

Usage is implied by the example ID and by the statement that it takes an item ID, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., use get_hn_comments for a story's comment thread). The agent must infer the boundary from sibling names alone.

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.