Skip to main content
Glama
andybrandt

MCP Simple Timeserver

get_local_time

Retrieve the current local time and timezone details from a user's machine to assist in scheduling or troubleshooting based on their location.

Instructions

Returns the current local time and timezone information from your local machine. This helps you understand what time it is for the user you're assisting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the get_local_time tool using the @app.tool decorator with metadata annotations including title and readOnlyHint.
    @app.tool( annotations = { "title": "Get Local Time and Timezone", "readOnlyHint": True } ) def get_local_time() -> str: """ Returns the current local time and timezone information from your local machine. This helps you understand what time it is for the user you're assisting. """ local_time = datetime.now() timezone = str(local_time.astimezone().tzinfo) formatted_time = local_time.strftime("%Y-%m-%d %H:%M:%S") return f"Current Time: {formatted_time}\nTimezone: {timezone}"

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/andybrandt/mcp-simple-timeserver'

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