Skip to main content
Glama

get rss feed

Retrieve RSS feeds from TabNews to access content updates and notifications directly within AI tools.

Instructions

To get the rss feed from tabnews

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool definition including the handler function for "get rss feed", which fetches the RSS feed using the service and returns it formatted as MCP text content.
    export const getRssFeedTool = { name: "get rss feed", description: "To get the rss feed from tabnews", parameters: {}, handler: async (): Promise<McpResponse> => { try { const result = await getRssFeed(); const content: McpTextContent = { type: "text", text: `RSS Feed:\n\n${result}`, }; return { content: [content], }; } catch (error) { if (error instanceof Error) { throw new Error(`Failed to get rss feed: ${error.message}`); } else { throw new Error("Failed to get rss feed"); } } }, };
  • src/index.ts:80-85 (registration)
    Registration of the "get rss feed" tool in the MCP server by calling server.tool with its name, description, parameters, and handler.
    server.tool( getRssFeedTool.name, getRssFeedTool.description, getRssFeedTool.parameters, getRssFeedTool.handler );
  • Supporting utility function that fetches the raw RSS feed content from the TabNews API endpoint.
    export async function getRssFeed(): Promise<string> { const response = await fetch(`${TABNEWS_API_URL}/contents/rss`); const data = await response.text(); return data; }

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/renant/mcp-tabnews'

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