Skip to main content
Glama

Sidetrip Hacker News

get_item_with_comments

Read-onlyIdempotent

Fetch one Hacker News item and a short comment tree from the official Firebase API. depth is 0 to 2 (default 2). Each level keeps at most 4 comments (default 3). Text is plain and truncated.

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

Input Schema

NameRequiredDescriptionDefault
idYesNumeric Hacker News item id.
depthNoComment depth. 0 returns the item only. Default 2, maximum 2.
repliesNoComments kept at each level. Default 3, maximum 4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely new context beyond that: the tree is deliberately 'short', depth is capped at 2, each level keeps at most 4 comments, and returned text is 'plain and truncated' — a real fidelity warning that annotations cannot express.

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 what is fetched before the parameter limits. No filler, no repetition of the title, and every clause carries either scope or a constraint.

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

Completeness3/5

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

There is no output schema, and the description does not indicate what fields the item returns (title, by, score, time, url) or how truncation is applied. It does cover the tree shape and text fidelity, so an agent can call it safely, but the return payload remains largely opaque for a fetch 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?

Schema description coverage is 100%, so the schema already documents id, depth, and replies with ranges and defaults. The description restates the same ranges and defaults ('depth is 0 to 2 (default 2)', 'at most 4 comments (default 3)') rather than adding new meaning, so it lands at the baseline for a fully documented 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?

States a specific verb and resource ('Fetch one Hacker News item and a short comment tree') plus the backing API, which clearly separates it from siblings like get_user, search_stories, and top_stories that operate on users, queries, or lists. The scope (single item by id, bounded comment tree) is unambiguous, though it never explicitly names a sibling.

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 'Fetch one Hacker News item' with a required id, so an agent can infer this is the single-item lookup path. However there is no explicit when-to-use versus search_stories or top_stories, no guidance on when depth 0 is preferable, and no stated preconditions.

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