Skip to main content
Glama

Aigentra x402 API

news_hn

Read-only

Search Hacker News stories (via Algolia) for a query: title, URL, points, comment count, author and time. Sort by relevance or date; up to 15 results. Good for tech news and developer sentiment checks. Price $0.003 USDC per call (x402, Base).

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": {
      "q": "<q>"
    },
    "name": "news_hn"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch query
sortNoDefault relevance
limitNo1-15, default 10

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 only cover readOnlyHint and openWorldHint; the description adds genuinely new behavior: results come from a third-party index (Algolia), a hard cap of 15 results, and a per-call cost of $0.003 USDC via x402 on Base. The pricing disclosure is especially valuable operational context absent from structured fields. It stops short of describing pagination or failure behavior, which keeps it below 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?

Two compact sentences, front-loaded with the verb and resource, then capability, then cost. Nearly every clause earns its place; the field list is slightly dense but readable and nothing is redundant filler.

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?

With no output schema, the description correctly enumerates return fields, and it covers cost, sort, and the result cap. For a paid, open-world search tool it could still say more about result quality, freshness, or what happens on zero matches before it is fully self-sufficient.

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 100%, so baseline would be 3, but the description adds meaning the schema omits: sort's allowed values ('relevance or date', whereas the schema only says 'Default relevance') and the 1–15 result ceiling that constrains the limit parameter. This is real added semantic value beyond the schema text.

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 ('Search Hacker News stories via Algolia') and enumerates the returned fields (title, URL, points, comment count, author, time). An agent can immediately tell this is HN search and not one of the summarization, embedding, or web-read siblings, though no sibling is named explicitly.

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?

'Good for tech news and developer sentiment checks' gives situational context, and the sort options hint at relevance-vs-recency use cases. There is no explicit when-not guidance and no named alternative, so the agent must infer boundaries.

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.