Skip to main content
Glama

get_time

Retrieve the current time via JSON-RPC on the Simple HTTP MCP Server. Designed for remote execution, it provides accurate time data for integration into client applications.

Instructions

Get the current time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_time' tool, which returns the current time in HH:MM:SS format using UTC.
    async def get_time() -> GetTimeOutput: """Get the current time.""" return GetTimeOutput(time=datetime.now(UTC).strftime("%H:%M:%S"))
  • Pydantic output schema for the 'get_time' tool, defining the 'time' field.
    class GetTimeOutput(BaseModel): time: str = Field(description="The current time")
  • Registration of the 'get_time' tool in the TOOLS tuple, specifying function, no inputs, and output schema.
    Tool( func=get_time, inputs=type(None), output=GetTimeOutput, ),

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/yeison-liscano/http_mcp'

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