get_current_time
Retrieve the current date and time for integration with AI agents or automated workflows using the Slim MCP server's RESTful API.
Instructions
Get the current date and time.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/claude_tools/datetime_tool.py:3-7 (handler)The handler function that implements the logic for the 'get_current_time' tool, returning the current local date and time as a formatted string.def get_current_time() -> str: """Get the current date and time. """ now = datetime.now() return f"Current date and time: {now.strftime('%Y-%m-%d %H:%M:%S')}"
- src/claude_tools/datetime_tool.py:17-17 (registration)Registers the 'get_current_time' function as an MCP tool using the decorator.mcp.tool()(get_current_time)