Skip to main content
Glama

Sidetrip Hacker News

search_stories

Read-onlyIdempotent

Search Hacker News with the keyless Algolia API. kind is story (default), comment, show_hn, ask_hn, or poll. Returns at most 15 hits (default 8).

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": {
      "query": "<query>"
    },
    "name": "search_stories"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoResult type. Defaults to story.
limitNoHow many hits to return. Default 8, maximum 15.
queryYesWords to search for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, and non-destructive semantics, so the description only needs to add beyond that. It does add two genuinely useful traits: no API key is required, and result sets are hard-capped at 15 (default 8). It does not say how results are ordered or whether paging is possible, but the cap implies there is none.

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, all front-loaded: what it searches, what kinds exist, and what comes back. Nothing is padded and the constraint most likely to surprise an agent (15-hit cap) is stated last but stated clearly.

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?

The tool is simple (3 params, no nesting, no output schema) and the description plus annotations cover selection and safety. The remaining gap is return shape: 'hits' is never described in terms of fields, so an agent knows how many results it gets but not what each one contains.

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 all three parameters (query, kind, limit) are already documented in the schema with enums, bounds, and defaults. The description restates the kind values and the limit default/max without adding new meaning, so baseline 3 applies.

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') plus the backing API (Algolia, keyless), which tells an agent exactly what this does. It enumerates the kind values, which partly distinguishes it from siblings like show_or_ask_hn, but never names an alternative or states which tool to prefer.

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 only implied through the kind enum: an agent can infer that show_hn/ask_hn/poll narrow results, but there is no explicit 'use this when' or 'prefer X instead' guidance. The presence of a sibling named show_or_ask_hn makes that omission meaningful, since the overlap is left unresolved.

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