Skip to main content
Glama

x402_hn_get_v1_top

Fetch top Hacker News stories and front-page headlines for tech news workflows without scraping pages.

Instructions

hn — Hacker News stories and comments via Algolia HN API. Use when an agent needs tech news, front-page stories, or comment threads without scraping. [GET /v1/top] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/top?hitsPerPage=5

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it usefully discloses the upstream data source and the $0.005 USDC price across four chains, which is meaningful context for a paid call. It says nothing about return size, pagination, rate limits, or when a paid call can fail and need the schema's restart flag.

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?

Compact and front-loaded: purpose, usage trigger, endpoint, cost, and an example in a few clauses. The chain-id list is dense but is the only real clutter.

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?

Covers what the tool is, what it costs, and how to call it with query params, which is enough to invoke. With no output schema, it does not describe the response shape or result size, so an agent cannot anticipate what comes back for a paid call.

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 coverage is 100%, so the properties are already documented, and the description adds only a concrete example (/v1/top?hitsPerPage=5) showing how query params are passed. It adds no meaning for restart or operationId, which are the non-obvious parameters.

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: Hacker News stories/comments via the Algolia HN API, mapped to the concrete GET /v1/top endpoint. The 'front-page stories' framing separates it reasonably from a generic search, though 'comment threads' blurs the line with x402_hn_get_v1_search.

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?

'Use when an agent needs tech news, front-page stories, or comment threads without scraping' gives an implied usage context. It never states when to prefer the sibling search endpoint over this top-stories endpoint, so the agent must infer the boundary.

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

Deploy Server

Other Tools