Skip to main content
Glama
raidenrock

USCardForum MCP Server

by raidenrock

get_user_actions

Retrieve a user's activity feed with filtering options to analyze likes, posts, topics, replies, and mentions on the USCardForum community.

Instructions

Fetch a user's activity feed with optional filtering.

Args:
    username: The user's handle
    filter: Action type filter (optional). Common values:
        - 1: Likes given
        - 2: Likes received
        - 4: Topics created
        - 5: Replies posted
        - 6: Posts (all)
        - 7: Mentions
    offset: Pagination offset (0, 30, 60, ...)

Returns a list of UserAction objects showing what the user has done.

Use this for detailed activity analysis beyond just replies.
For most cases, get_user_replies or get_user_topics are simpler.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesThe user's handle
filterNoAction type filter: 1=likes given, 2=likes received, 4=topics created, 5=replies posted, 6=all posts, 7=mentions
offsetNoPagination offset (0, 30, 60, ...)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The MCP tool handler for 'get_user_actions'. This function is decorated with @mcp.tool() and defines the tool's input schema using Annotated and Field. It fetches the user's actions via the client API and returns a list of UserAction objects.
    @mcp.tool()
    def get_user_actions(
        username: Annotated[
            str,
            Field(description="The user's handle"),
        ],
        filter: Annotated[
            int | None,
            Field(
                default=None,
                description="Action type filter: 1=likes given, 2=likes received, 4=topics created, 5=replies posted, 6=all posts, 7=mentions",
            ),
        ] = None,
        offset: Annotated[
            int | None,
            Field(default=None, description="Pagination offset (0, 30, 60, ...)"),
        ] = None,
    ) -> list[UserAction]:
        """
        Fetch a user's activity feed with optional filtering.
    
        Args:
            username: The user's handle
            filter: Action type filter (optional). Common values:
                - 1: Likes given
                - 2: Likes received
                - 4: Topics created
                - 5: Replies posted
                - 6: Posts (all)
                - 7: Mentions
            offset: Pagination offset (0, 30, 60, ...)
    
        Returns a list of UserAction objects showing what the user has done.
    
        Use this for detailed activity analysis beyond just replies.
        For most cases, get_user_replies or get_user_topics are simpler.
        """
        return get_client().get_user_actions(username, filter=filter, offset=offset)
  • Package-level import and exposure of the get_user_actions tool from the users module, making it available when importing server_tools.
    from .users import (
        get_user_actions,
        get_user_badges,
        get_user_followers,
        get_user_following,
        get_user_reactions,
        get_user_replies,
        get_user_summary,
        get_user_topics,
        list_users_with_badge,
    )
  • Top-level server entrypoint imports and exposes get_user_actions as part of all MCP tools.
    from uscardforum.server_tools import (
        analyze_user,
        bookmark_post,
        compare_cards,
        find_data_points,
        get_all_topic_posts,
        get_categories,
        get_current_session,
        get_hot_topics,
        get_new_topics,
        get_notifications,
        get_top_topics,
        get_topic_info,
        get_topic_posts,
        get_user_actions,
        get_user_badges,
        get_user_followers,
        get_user_following,
        get_user_reactions,
        get_user_replies,
        get_user_summary,
        get_user_topics,
        list_users_with_badge,
        login,
        research_topic,
        resource_categories,
        resource_hot_topics,
        resource_new_topics,
        search_forum,
        subscribe_topic,
    )
    
    __all__ = [
        "MCP_HOST",
        "MCP_PORT",
        "MCP_TRANSPORT",
        "NITAN_TOKEN",
        "SERVER_INSTRUCTIONS",
        "get_client",
        "main",
        "mcp",
        "analyze_user",
        "bookmark_post",
        "compare_cards",
        "find_data_points",
        "get_all_topic_posts",
        "get_categories",
        "get_current_session",
        "get_hot_topics",
        "get_new_topics",
        "get_notifications",
        "get_top_topics",
        "get_topic_info",
        "get_topic_posts",
        "get_user_actions",
        "get_user_badges",
        "get_user_followers",
        "get_user_following",
        "get_user_reactions",
        "get_user_replies",
        "get_user_summary",
        "get_user_topics",
        "list_users_with_badge",
        "login",
        "resource_categories",
        "resource_hot_topics",
        "resource_new_topics",
        "search_forum",
        "subscribe_topic",
        "research_topic",
    ]
Behavior3/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. It discloses that the tool fetches an activity feed with optional filtering and pagination, and mentions it returns 'a list of UserAction objects.' However, it lacks details on rate limits, authentication needs, error conditions, or the structure of UserAction objects. For a tool with no annotations, this is a moderate disclosure but misses key behavioral aspects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, starting with the core purpose. The bulleted list for filter values is efficient, and the usage guidelines are concise. However, the 'Args:' section slightly duplicates schema information, and the structure could be more streamlined by integrating the parameter details into the main flow without separate headings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (3 parameters, 1 required), 100% schema coverage, and the presence of an output schema (implied by 'Returns a list of UserAction objects'), the description is largely complete. It covers purpose, usage guidelines, and basic parameter context. The main gap is the lack of behavioral details like rate limits or auth requirements, but the output schema reduces the need to explain return values in the description.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema: it repeats the filter values in a bulleted list and clarifies the offset as 'Pagination offset (0, 30, 60, ...)', which is already in the schema. This meets the baseline of 3 since the schema does the heavy lifting, but the description doesn't add significant semantic context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Fetch a user's activity feed') and resource ('user'), distinguishing it from sibling tools like get_user_replies or get_user_topics by emphasizing it provides 'detailed activity analysis beyond just replies.' This explicitly differentiates its broader scope from more focused sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool versus alternatives: 'Use this for detailed activity analysis beyond just replies. For most cases, get_user_replies or get_user_topics are simpler.' This clearly defines the context (detailed analysis) and names specific simpler alternatives, helping the agent choose appropriately.

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/raidenrock/uscardforum-mcp'

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