Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NYT_API_KEYYesYour NYT API key (get one at NYT Developer Portal)

Tools

Functions exposed to the LLM to take actions

NameDescription
search_articles

Search New York Times articles by query, date range, and other criteria.

Args: query: Search query string sort: Sort order - "newest" or "oldest" (default: "newest") begin_date: Start date in YYYYMMDD format (optional) end_date: End date in YYYYMMDD format (optional) page: Page number for pagination, 0-indexed (optional)

Returns: Formatted response with articles array containing headline, snippet, web_url, and pub_date

get_latest_news

Get the latest news items from the NYT news wire (real-time news feed).

Args: limit: Number of items to return (default: 20) offset: Pagination offset (default: 0) source: News source - "nyt" or "inyt" (default: "nyt") section: News section (default: "all"). e.g. "u.s." or "technology". Use the 'nyt://reference/sections' resource for available section names.

Returns: Formatted response with news_items array containing title, abstract, url, section, subsection, published_date, and byline

get_most_popular

Get the most popular New York Times articles.

Args: type: Type of popularity - "viewed", "shared", or "emailed" (default: "viewed") time_period: Time period in days - "1", "7", or "30" (default: "1") Use the 'nyt://reference/popular-types' resource for available options.

Returns: Formatted response with articles array containing title, abstract, url, and published_date

get_archive

Get New York Times articles from a specific month and year archive.

Args: year: Year (default: current year) month: Month 1-12 (default: current month)

Returns: Full NYT archive API response (unformatted)

get_bestseller_list

Get New York Times bestseller lists.

Args: list: List name (e.g., "hardcover-fiction", "hardcover-nonfiction", "paperback-nonfiction") Default is "hardcover-fiction". Use the 'nyt://reference/bestseller-lists' resource for available list names. offset: Pagination offset (default: 0)

Returns: Full NYT Books API response (unformatted)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
nyt://reference/sections
nyt://reference/bestseller-lists
nyt://reference/api-limits

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/jeffmm/nytimes-mcp'

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