Skip to main content
Glama

get_current_utc_time

Retrieve the current UTC date and time for precise synchronization in automated workflows or applications via Slim MCP's RESTful interface.

Instructions

Get the current UTC date and time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic, returning the current UTC date and time as a formatted string.
    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')}"
  • Registers the get_current_utc_time handler as an MCP tool using the mcp.tool() decorator within the register_datetime_tools function.
    mcp.tool()(get_current_utc_time)

Other Tools

Related Tools

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