Skip to main content
Glama
jkingsman

https://github.com/jkingsman/qanon-mcp-server

get_posts_by_author_id

Retrieve QAnon posts by a specific author ID for sociological analysis, with optional result limit.

Instructions

Get posts/drops by a specific author ID.

Args:
    author_id: The author ID to search for
    limit: Maximum number of results to return (default: 10)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
author_idYes
limitNo

Implementation Reference

  • The handler function decorated with @mcp.tool(), implementing the core logic to retrieve and format posts by author ID. This serves as both the handler and registration point for the MCP tool.
    @mcp.tool()
    def get_posts_by_author_id(author_id: str, limit: int = 10) -> str:
        """
        Get posts/drops by a specific author ID.
    
        Args:
            author_id: The author ID to search for
            limit: Maximum number of results to return (default: 10)
        """
        if not author_id:
            return "Please provide an author ID."
    
        results = []
        for post in posts:
            post_author_id = post.get("post_metadata", {}).get("author_id", "")
            if post_author_id == author_id:
                results.append(post)
    
        if not results:
            return f"No posts found with author ID '{author_id}'."
    
        total_found = len(results)
        results = results[:limit]
    
        output = f"Found {total_found} posts with author ID '{author_id}'. Showing top {len(results)} results:\n\n"
    
        for i, post in enumerate(results, 1):
            output += f"Result {i}:\n{format_post(post)}\n\n" + "-" * 40 + "\n\n"
    
        if total_found > limit:
            output += f"... and {total_found - limit} more posts."
    
        return output

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/jkingsman/qanon-mcp-server'

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