Skip to main content
Glama
V2-Digital

V2.ai Insights Scraper MCP

by V2-Digital

summarize_post

Generate AI-powered summaries of V2.ai Insights blog posts by specifying the post index to extract key content quickly.

Instructions

Returns a summary of the blog post at the specified index

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes

Implementation Reference

  • The internal logic implementation of `_summarize_post` which performs the actual fetching and summarization of the blog post.
    def _summarize_post(index: int):
        """Returns a summary of the blog post at the specified index"""
        posts = fetch_blog_posts()
        if 0 <= index < len(posts):
            post = posts[index]
            summary = summarize(post["content"])
            return {
                "title": post["title"],
                "date": post["date"],
                "author": post["author"],
                "url": post["url"],
                "summary": summary,
            }
        else:
            return {"error": f"Invalid index. Available posts: 0 to {len(posts) - 1}"}
  • The registration of the `summarize_post` tool using the @mcp.tool decorator.
    def summarize_post(index: int):
        """Returns a summary of the blog post at the specified index"""
        return _summarize_post(index)

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/V2-Digital/v2-ai-mcp'

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