Skip to main content
Glama
joe5saia

nyt-mcp

by joe5saia

get_top_stories

Retrieve the current top stories for any New York Times section, such as home, world, science, or politics, to stay informed on leading headlines.

Instructions

Get the current top stories for a given NYT section.

Args: ctx: MCP context (injected automatically). section: Section name (e.g. 'home', 'world', 'science', 'politics').

Returns: Formatted list of top stories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ctxYes
sectionNohome

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It notes the return is a 'formatted list of top stories' but says nothing about API key/auth requirements, rate limits, caching, or freshness of 'current' stories — meaningful gaps for a live news-fetch tool.

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 core purpose is front-loaded in one sentence, followed by compact Args/Returns sections. The docstring formatting is slightly verbose for two parameters but nothing is padded or redundant.

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 an output schema present, return values need not be described, and the description correctly keeps that brief. However, for a tool with siblings that fetch similar news content and zero annotations, the absence of any selection criteria or auth/freshness context leaves the definition only minimally viable.

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 0%, so the description must compensate, and it does explain both parameters: section with concrete examples ('home', 'world', 'science', 'politics') and ctx as an auto-injected MCP context. That is genuinely helpful, but it doesn't state the default behavior of section or the accepted value space exhaustively.

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: retrieves current top stories, scoped to a NYT section. It is clear what the tool does, but it never distinguishes itself from siblings like get_most_popular or get_newswire, which an agent could easily confuse with 'top stories'.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over search_articles, get_most_popular, or get_newswire. The only hint of context is the section examples, which is usage of a parameter, not of the tool.

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