get_current_utc_time
Retrieve the current UTC date and time for synchronization, scheduling, or timestamping needs in automated workflows and AI agent integrations.
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 implements the logic for the 'get_current_utc_time' tool, fetching and formatting the current UTC datetime.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)The registration of the 'get_current_utc_time' tool using the mcp.tool() decorator within the register_datetime_tools function.mcp.tool()(get_current_utc_time)
- src/claude_tools/main.py:26-26 (registration)Invocation of the register_datetime_tools function in the main entry point, which triggers the tool registration.register_datetime_tools(mcp)