Skip to main content
Glama
raidenrock

USCardForum MCP Server

by raidenrock

get_notifications

Fetch user notifications from USCardForum to check replies, mentions, likes, and topic updates with optional filters for unread items and time ranges.

Instructions

Fetch your notifications. REQUIRES AUTHENTICATION.

Args:
    since_id: Only get notifications newer than this ID (optional)
    only_unread: Only return unread notifications (default: False)
    limit: Maximum number to return (optional)

Must call login() first.

Returns a list of Notification objects with:
- id: Notification ID
- notification_type: Type of notification
- read: Whether read
- topic_id: Related topic
- post_number: Related post
- created_at: When created

Use to:
- Check for new replies to your posts
- See mentions and likes
- Track topic updates you're watching

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
since_idNoOnly get notifications newer than this ID
only_unreadNoOnly return unread notifications
limitNoMaximum number to return

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The primary MCP tool handler for 'get_notifications'. Includes input schema via Annotated Pydantic Fields (since_id, only_unread, limit) and delegates execution to the client API after authentication.
    @mcp.tool()
    def get_notifications(
        since_id: Annotated[
            int | None,
            Field(default=None, description="Only get notifications newer than this ID"),
        ] = None,
        only_unread: Annotated[
            bool,
            Field(default=False, description="Only return unread notifications"),
        ] = False,
        limit: Annotated[
            int | None,
            Field(default=None, description="Maximum number to return"),
        ] = None,
    ) -> list[Notification]:
        """
        Fetch your notifications. REQUIRES AUTHENTICATION.
    
        Args:
            since_id: Only get notifications newer than this ID (optional)
            only_unread: Only return unread notifications (default: False)
            limit: Maximum number to return (optional)
    
        Must call login() first.
    
        Returns a list of Notification objects with:
        - id: Notification ID
        - notification_type: Type of notification
        - read: Whether read
        - topic_id: Related topic
        - post_number: Related post
        - created_at: When created
    
        Use to:
        - Check for new replies to your posts
        - See mentions and likes
        - Track topic updates you're watching
        """
        return get_client().get_notifications(
            since_id=since_id, only_unread=only_unread, limit=limit
        )
  • Registers the 'get_notifications' tool by importing it (line 25) into the MCP server entrypoint module, making it available when the server runs.
    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,
    )
  • Re-exports the 'get_notifications' tool (line 37) from the auth submodule for convenient import in the server tools package.
    from .auth import (
        bookmark_post,
        get_current_session,
        get_notifications,
        login,
        subscribe_topic,
    )
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and does well by disclosing authentication requirement ('REQUIRES AUTHENTICATION'), pagination behavior ('Maximum number to return'), and filtering capabilities. It doesn't mention rate limits or error conditions, but covers core behavioral aspects adequately.

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?

Well-structured with clear sections (Args, Returns, Use to), but could be more concise. The authentication warning appears twice ('REQUIRES AUTHENTICATION' and 'Must call login() first'), and the parameter descriptions repeat schema content. However, information is front-loaded and organized effectively.

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

Completeness5/5

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

For a read operation with 3 parameters and an output schema, the description is complete. It covers authentication requirements, parameter usage, return format details, and specific use cases. With an output schema present, it doesn't need to explain return values in detail, and it provides adequate context for the tool's purpose and usage.

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 fully documents all three parameters. The description repeats the parameter information in the Args section but doesn't add meaningful semantic context beyond what's in the schema. Baseline 3 is appropriate when schema does the heavy lifting.

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 verb 'fetch' and resource 'notifications', distinguishing it from siblings like get_user_actions or get_user_replies which focus on different data. It specifies it's for 'your notifications' (personal notifications) rather than system-wide notifications.

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?

Explicitly states 'Must call login() first' for authentication prerequisite, and provides three specific use cases: 'Check for new replies to your posts', 'See mentions and likes', and 'Track topic updates you're watching'. This gives clear context for when to use this tool versus alternatives.

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