Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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")}
  • Import statement providing datetime and timezone utilities used by the get_current_time handler.
    from datetime import datetime, timezone
  • The @mcp.tool() decorator registers the get_current_time function as an MCP tool.
    @mcp.tool()

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/armorwallet/armor-crypto-mcp'

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