Skip to main content
Glama

get-current-time

Retrieve the current time in the local timezone using the MCP-timeserver. Simplify time-based operations by accessing accurate, real-time data for your applications.

Instructions

Get the current time in the configured local timezone

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'get-current-time' tool, which returns the current local time formatted as a TextContent object.
    if name == "get-current-time": return [ types.TextContent( type="text", text=f"The current time is {datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}", ) ]
  • Tool registration in list_tools(), defining name, description, and input schema.
    types.Tool( name="get-current-time", description="Get the current time in the configured local timezone", inputSchema={"type": "object"}, )
  • Input schema for the get-current-time tool: an empty object (no parameters).
    inputSchema={"type": "object"},

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/SecretiveShell/MCP-timeserver'

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