get_current_date
Retrieve the current date and time for email management tasks, such as scheduling messages or timestamping operations within the Mail MCP Server.
Instructions
Get current date and time
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mail_mcp/client.py:471-473 (handler)The implementation of the get_current_date tool within the IMAPClient class.
def get_current_date(self) -> str: """Get current date in ISO format.""" return datetime.now().isoformat() - src/mail_mcp/tools/__init__.py:314-321 (registration)Tool registration for get_current_date in the MCP tools definition list.
Tool( name="get_current_date", description="Get current date and time", inputSchema={ "type": "object", "properties": {}, }, ), - src/mail_mcp/tools/__init__.py:551-553 (handler)Tool handler logic that calls the IMAPClient.get_current_date method.
elif name == "get_current_date": result = client.get_current_date() return [TextContent(type="text", text=str(result))]