Skip to main content
Glama
manimohans

The Verge News MCP Server

by manimohans

get-daily-news

Fetch today's news articles from The Verge to stay informed about current technology, science, and culture developments.

Instructions

Get the latest news from The Verge for today

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that fetches The Verge RSS feed, filters news from the last 24 hours, formats top 10 as brief summaries, and returns structured text content or error.
    async () => {
      try {
        const allNews = await fetchVergeNews();
        const todayNews = filterNewsByDate(allNews, 1); // Last 24 hours
        const formattedNews = formatNewsItems(todayNews);
        const newsText = formatNewsAsBriefSummary(formattedNews, 10); // Limit to 10 items with brief summaries
        
        return {
          content: [
            {
              type: "text",
              text: `# The Verge - Today's News\n\n${newsText}`
            }
          ]
        };
      } catch (error) {
        console.error("Error in get-daily-news:", error);
        return {
          content: [
            {
              type: "text",
              text: `Error fetching daily news: ${error instanceof Error ? error.message : String(error)}`
            }
          ],
          isError: true
        };
      }
    }
  • src/index.ts:145-177 (registration)
    Registers the 'get-daily-news' tool on the MCP server with name, description, empty input schema, and the handler function.
    server.tool(
      "get-daily-news",
      "Get the latest news from The Verge for today",
      {},
      async () => {
        try {
          const allNews = await fetchVergeNews();
          const todayNews = filterNewsByDate(allNews, 1); // Last 24 hours
          const formattedNews = formatNewsItems(todayNews);
          const newsText = formatNewsAsBriefSummary(formattedNews, 10); // Limit to 10 items with brief summaries
          
          return {
            content: [
              {
                type: "text",
                text: `# The Verge - Today's News\n\n${newsText}`
              }
            ]
          };
        } catch (error) {
          console.error("Error in get-daily-news:", error);
          return {
            content: [
              {
                type: "text",
                text: `Error fetching daily news: ${error instanceof Error ? error.message : String(error)}`
              }
            ],
            isError: true
          };
        }
      }
    );
  • Fetches and parses the RSS feed from The Verge, returns the items array. Used by the handler to get all news.
    async function fetchVergeNews() {
      try {
        const feed = await parser.parseURL(VERGE_RSS_URL);
        return feed.items;
      } catch (error) {
        console.error("Error fetching RSS feed:", error);
        throw new Error("Failed to fetch news from The Verge");
      }
    }
  • Filters RSS items to those published within the last 'daysBack' days. Called with 1 for daily news.
    function filterNewsByDate(items: Parser.Item[], daysBack: number) {
      const now = new Date();
      const cutoffDate = new Date(now.setDate(now.getDate() - daysBack));
      
      return items.filter((item) => {
        if (!item.pubDate) return false;
        const pubDate = new Date(item.pubDate);
        return pubDate >= cutoffDate;
      });
    }
  • Formats formatted news items into brief text summaries with title, link, and truncated content (limit 150 chars), up to 'limit' items. Used with 10.
    function formatNewsAsBriefSummary(items: ReturnType<typeof formatNewsItems>, limit: number = 10) {
      if (items.length === 0) {
        return "No news articles found for the specified time period.";
      }
      
      // Limit the number of items
      const limitedItems = items.slice(0, limit);
      
      return limitedItems.map((item, index) => {
        // Extract a brief summary (first 150 characters)
        const summary = item.content.substring(0, 150).trim() + (item.content.length > 150 ? "..." : "");
        
        return `
    ${index + 1}. ${item.title}
       Link: ${item.link}
       Summary: ${summary}
       `;
      }).join("\n---\n");
    }
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 burden of behavioral disclosure. It mentions fetching 'latest news' but doesn't specify aspects like rate limits, authentication needs, data freshness, or what happens if no news is available today. For a tool with zero annotation coverage, this leaves significant gaps in understanding its operational behavior.

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?

The description is a single, efficient sentence that directly states the tool's function without any wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly, which is ideal for conciseness.

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?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but has clear gaps. It explains what the tool does but lacks details on behavioral traits, output format, or differentiation from siblings. For a basic read operation, it meets the minimum viable standard but doesn't provide full context for optimal agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, meaning no parameters are documented in the schema. The description doesn't add parameter details, but since there are no parameters, a baseline score of 4 is appropriate as there's nothing to compensate for, and the description adequately conveys the tool's purpose without parameter confusion.

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?

The description clearly states the action ('Get') and resource ('latest news from The Verge for today'), making the purpose understandable. However, it doesn't explicitly differentiate from sibling tools like 'get-weekly-news' (which presumably covers a different time frame) or 'search-news' (which likely offers search capabilities), so it misses the highest score.

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?

The description provides minimal guidance by specifying 'for today', implying usage for current news. However, it doesn't explicitly state when to use this tool versus alternatives like 'get-weekly-news' or 'search-news', nor does it mention any exclusions or prerequisites, leaving the agent with incomplete decision-making context.

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/manimohans/verge-news-mcp'

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