bookmark_post
Save forum posts for later reference with optional labels, reminders, and auto-deletion settings. Requires user authentication to access USCardForum content.
Instructions
Bookmark a post for later reference. REQUIRES AUTHENTICATION.
Args:
post_id: The numeric post ID to bookmark
name: Optional label/name for the bookmark
reminder_type: Optional reminder setting
reminder_at: Optional reminder datetime (ISO format)
auto_delete_preference: When to auto-delete (default: 3)
- 0: Never
- 1: When reminder sent
- 2: On click
- 3: Clear after 3 days
Must call login() first.
Returns a Bookmark object with the created bookmark information.
Use to save interesting posts for later reference.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | The numeric post ID to bookmark | |
| name | No | Label/name for the bookmark | |
| reminder_type | No | Reminder setting | |
| reminder_at | No | Reminder datetime (ISO format) | |
| auto_delete_preference | No | When to auto-delete: 0=never, 1=when reminder sent, 2=on click, 3=after 3 days (default) |
Implementation Reference
- MCP tool handler for bookmark_post. Decorated with @mcp.tool(). Includes input schema via Annotated Fields with descriptions. Executes by calling get_client().bookmark_post() with parameters and returns Bookmark.@mcp.tool() def bookmark_post( post_id: Annotated[ int, Field(description="The numeric post ID to bookmark"), ], name: Annotated[ str | None, Field(default=None, description="Label/name for the bookmark"), ] = None, reminder_type: Annotated[ int | None, Field(default=None, description="Reminder setting"), ] = None, reminder_at: Annotated[ str | None, Field(default=None, description="Reminder datetime (ISO format)"), ] = None, auto_delete_preference: Annotated[ int | None, Field( default=3, description="When to auto-delete: 0=never, 1=when reminder sent, 2=on click, 3=after 3 days (default)", ), ] = 3, ) -> Bookmark: """ Bookmark a post for later reference. REQUIRES AUTHENTICATION. Args: post_id: The numeric post ID to bookmark name: Optional label/name for the bookmark reminder_type: Optional reminder setting reminder_at: Optional reminder datetime (ISO format) auto_delete_preference: When to auto-delete (default: 3) - 0: Never - 1: When reminder sent - 2: On click - 3: Clear after 3 days Must call login() first. Returns a Bookmark object with the created bookmark information. Use to save interesting posts for later reference. """ return get_client().bookmark_post( post_id, name=name, reminder_type=reminder_type, reminder_at=reminder_at, auto_delete_preference=auto_delete_preference, )
- src/uscardforum/server_tools/__init__.py:52-58 (registration)Imports the bookmark_post tool from auth.py into the server_tools package, making it available for use and registration in the MCP server.from .auth import ( login, get_current_session, get_notifications, bookmark_post, subscribe_topic, )
- src/uscardforum/server.py:15-44 (registration)Imports bookmark_post tool in the main server entrypoint, ensuring it is registered with the MCP server upon startup.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,