get_current_time
Retrieve the current time and date for synchronization or timestamping tasks within the Armor Crypto MCP server, ensuring accurate blockchain operations and AI agent coordination.
Instructions
Gets the current time and date
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:95-98 (handler)The handler function for the 'get_current_time' tool, decorated with @mcp.tool() for registration. It returns the current UTC time as a formatted string in a dictionary.@mcp.tool() async def get_current_time() -> Dict: """Gets the current time and date""" return {"current_time": datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")}
- armor_crypto_mcp/armor_mcp.py:94-94 (helper)Import statement providing datetime and timezone utilities used by the get_current_time handler.from datetime import datetime, timezone
- armor_crypto_mcp/armor_mcp.py:95-95 (registration)The @mcp.tool() decorator registers the get_current_time function as an MCP tool.@mcp.tool()