Skip to main content
Glama

get_current_utc_time

Retrieve the current UTC date and time for synchronization, scheduling, or timestamping needs in automated workflows and AI agent integrations.

Instructions

Get the current UTC date and time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the logic for the 'get_current_utc_time' tool, fetching and formatting the current UTC datetime.
    def get_current_utc_time() -> str: """Get the current UTC date and time. """ now = datetime.now(timezone.utc) return f"Current UTC date and time: {now.strftime('%Y-%m-%d %H:%M:%S UTC')}"
  • The registration of the 'get_current_utc_time' tool using the mcp.tool() decorator within the register_datetime_tools function.
    mcp.tool()(get_current_utc_time)
  • Invocation of the register_datetime_tools function in the main entry point, which triggers the tool registration.
    register_datetime_tools(mcp)

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/webdevtodayjason/slim-MCP'

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