Skip to main content
Glama

Get new stories

get_new_stories

Fetch new Hacker News stories sorted by submission time to get the most recent posts, useful when recency matters more than popularity.

Instructions

Fetches Hacker News newest stories from the Firebase newstories ranking and returns summaries, unlike get_top_stories which follows front-page rank or search_stories which uses keywords. Read-only, idempotent, and unauthenticated; the client caches GET responses in memory for 60 seconds and throttles upstream HN/Algolia requests to 10 requests/second with a burst of 20, while upstream HTTP, rate-limit, or response-shape failures are returned as tool errors. Use when recency matters more than score or comment activity; use get_top_stories or get_best_stories when popularity signals matter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of stories to return. Defaults to 10; valid range is 1 to 30.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
storiesYes
returnedYes
Behavior5/5

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

Given no annotations, the description fully discloses caching (60s in-memory), rate limiting (10 req/s burst 20), and error handling (upstream failures returned as tool errors). No contradiction with annotations.

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?

The description is well-structured with front-loaded purpose and comparisons, followed by behavior details. Every sentence adds value, though it could be slightly shorter without losing clarity.

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

Completeness5/5

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

With an output schema present, the description covers purpose, usage, behavior, and parameters thoroughly. The only minor gap (return summaries format) is likely filled by the output schema.

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% with one parameter (limit) that already has a description. The description adds no extra parameter info beyond what the schema provides, so baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it fetches HN newest stories from the newstories ranking and returns summaries. It explicitly distinguishes from siblings like get_top_stories (front-page rank) and search_stories (keywords).

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

Usage Guidelines5/5

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

The description explicitly says when to use (recency matters more than score/comment activity) and when not (use get_top_stories or get_best_stories for popularity signals). Also notes read-only, idempotent, unauthenticated nature.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Markgatcha/universal-mcp-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server