get_settings
Retrieve user preferences and settings for your Remember The Milk account. Access current configuration values.
Instructions
Get user settings.
Returns: User preferences and settings
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/rtm_mcp/tools/utilities.py:157-187 (handler)The handler function for the 'get_settings' tool. It calls rtm.settings.getList via the RTM client and formats the response with timezone, date_format, time_format, default_list_id, language, and raw settings.
@mcp.tool() async def get_settings(ctx: Context) -> dict[str, Any]: """Get user settings. Returns: User preferences and settings """ from ..client import RTMClient client: RTMClient = await get_client() result = await client.call("rtm.settings.getList") settings = result.get("settings", {}) # Format settings nicely date_format = ( "European (DD/MM/YY)" if settings.get("dateformat") == "0" else "American (MM/DD/YY)" ) time_format = "12-hour" if settings.get("timeformat") == "0" else "24-hour" return build_response( data={ "timezone": settings.get("timezone"), "date_format": date_format, "time_format": time_format, "default_list_id": settings.get("defaultlist"), "language": settings.get("language"), "raw": settings, }, ) - src/rtm_mcp/tools/utilities.py:10-12 (registration)The registration function that uses @mcp.tool() decorator on get_settings to register it as an MCP tool.
def register_utility_tools(mcp: Any, get_client: Any) -> None: """Register utility and diagnostic tools.""" - src/rtm_mcp/server.py:106-106 (registration)Server main entry point calls register_utility_tools(mcp, get_client) which registers the get_settings tool.
register_utility_tools(mcp, get_client)