get_user_replies
Fetch user replies across topics to analyze contributions, find data points, and evaluate participation quality in the USCardForum community.
Instructions
Fetch replies/posts made by a user in other topics.
Args:
username: The user's handle
offset: Pagination offset (0, 30, 60, ...)
Returns a list of UserAction objects with:
- topic_id: Which topic they replied to
- post_number: Their post number in that topic
- title: Topic title
- excerpt: Preview of their reply
- created_at: When they replied
Use this to:
- See a user's contributions across topics
- Find their data points and experiences
- Evaluate the quality of their participation
Paginate with offset in increments of 30.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | The user's handle | |
| offset | No | Pagination offset (0, 30, 60, ...) |
Implementation Reference
- MCP tool handler for get_user_replies, decorated with @mcp.tool(). Defines input schema via Annotated[Field] and output as list[UserAction]. Delegates to shared client instance.@mcp.tool() def get_user_replies( username: Annotated[ str, Field(description="The user's handle"), ], offset: Annotated[ int | None, Field(default=None, description="Pagination offset (0, 30, 60, ...)"), ] = None, ) -> list[UserAction]: """ Fetch replies/posts made by a user in other topics. Args: username: The user's handle offset: Pagination offset (0, 30, 60, ...) Returns a list of UserAction objects with: - topic_id: Which topic they replied to - post_number: Their post number in that topic - title: Topic title - excerpt: Preview of their reply - created_at: When they replied Use this to: - See a user's contributions across topics - Find their data points and experiences - Evaluate the quality of their participation Paginate with offset in increments of 30. """ return get_client().get_user_replies(username, offset=offset)
- src/uscardforum/client.py:343-357 (helper)DiscourseClient wrapper method that delegates to UsersAPI.get_user_replies.def get_user_replies( self, username: str, offset: int | None = None, ) -> list[UserAction]: """Fetch user's replies. Args: username: User handle offset: Optional pagination offset Returns: List of reply action objects """ return self._users.get_user_replies(username, offset=offset)
- src/uscardforum/api/users.py:112-127 (helper)UsersAPI implementation that fetches user actions with filter=5 (replies) from /user_actions.json endpoint.def get_user_replies( self, username: str, offset: int | None = None, ) -> list[UserAction]: """Fetch user's replies. Args: username: User handle offset: Optional pagination offset Returns: List of reply action objects """ return self.get_user_actions(username, filter=5, offset=offset)
- src/uscardforum/server_tools/__init__.py:37-85 (registration)Imports the get_user_replies tool from users.py into the server_tools package, making it available for higher-level imports.from .users import ( get_user_summary, get_user_topics, get_user_replies, get_user_actions, get_user_badges, get_user_following, get_user_followers, get_user_reactions, list_users_with_badge, ) # ============================================================================= # 🔐 Auth — Authenticated actions (requires login) # ============================================================================= from .auth import ( login, get_current_session, get_notifications, bookmark_post, subscribe_topic, ) # ============================================================================= # Prompts & Resources # ============================================================================= from .prompts import analyze_user, compare_cards, find_data_points, research_topic from .resources import resource_categories, resource_hot_topics, resource_new_topics __all__ = [ # 📰 Discovery "get_hot_topics", "get_new_topics", "get_top_topics", "search_forum", "get_categories", # 📖 Reading "get_topic_info", "get_topic_posts", "get_all_topic_posts", # 👤 Users "get_user_summary", "get_user_topics", "get_user_replies", "get_user_actions", "get_user_badges", "get_user_following", "get_user_followers",
- src/uscardforum/server.py:34-74 (registration)Imports and re-exports get_user_replies from server_tools in the main server entrypoint.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",