Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
  • 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": {},
        },
    ),
  • 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))]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AdJIa/mail-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server