get_current_utc_time
Retrieve the current UTC date and time for precise synchronization in automated workflows or applications via Slim MCP's RESTful interface.
Instructions
Get the current UTC date and time.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/claude_tools/datetime_tool.py:9-13 (handler)The handler function that executes the tool logic, returning the current UTC date and time as a formatted string.def get_current_utc_time() -> str: """Get the current UTC date and time. """ now = datetime.now(timezone.utc) return f"Current UTC date and time: {now.strftime('%Y-%m-%d %H:%M:%S UTC')}"
- src/claude_tools/datetime_tool.py:18-18 (registration)Registers the get_current_utc_time handler as an MCP tool using the mcp.tool() decorator within the register_datetime_tools function.mcp.tool()(get_current_utc_time)