Skip to main content
Glama
VikasPrajapati1998

DateTime-LocalMCPServer

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tasks
{
  "list": {},
  "cancel": {},
  "requests": {
    "tools": {
      "call": {}
    },
    "prompts": {
      "get": {}
    },
    "resources": {
      "read": {}
    }
  }
}
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
current_datetime

Return the current or today's local date and time in ISO 8601 format.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - datetime : str Current local date and time in ISO 8601 format.

current_date

Return today's local date.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - date : str Current date in YYYY-MM-DD format.

current_time

Return the current local time.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - time : str Current time in HH:MM:SS format.

current_day

Return the name of the current day.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - day : str Name of the current day (e.g., Monday).

current_month

Return the name of the current month.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - month : str Name of the current month (e.g., January).

current_year

Return the current year.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - year : int Current year.

unix_timestamp

Return the current Unix timestamp.

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution. - timestamp : int Number of seconds since the Unix epoch.

timezone_datetime

Return the current date and time for a specified timezone.

Parameters

timezone : str, optional IANA timezone name (e.g., "UTC", "Asia/Kolkata"). Defaults to "UTC".

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution or error. - timezone : str Requested timezone. - datetime : str Current datetime in ISO 8601 format for the given timezone.

If an invalid timezone is provided, an error response is returned.
formatted_datetime

Return the current date and time using a custom format.

Parameters

format : str, optional strftime-compatible format string. Defaults to "%Y-%m-%d %H:%M:%S".

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution or error. - formatted : str Current datetime formatted according to the provided format string.

If the format string is invalid, an error response is returned.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
tools_summaryProvide a human-readable summary of all datetime tools. This resource is intended for documentation, discovery, and client-side help interfaces.

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/VikasPrajapati1998/DateTime-LocalMCPServer'

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