Skip to main content
Glama

get_current_time

Retrieve the current date and time in a standardized format using this utility, ensuring accurate timestamping for your processes.

Instructions

返回当前的日期和时间

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline handler function for the 'get_current_time' tool, which returns the current date and time as an ISO string in a text content block.
    server.tool("get_current_time", "返回当前的日期和时间", {}, async () => ({ content: [{ type: "text", text: new Date().toISOString() }], }));
  • src/index.ts:33-35 (registration)
    Registers the 'get_current_time' MCP tool using server.tool, with Chinese description, empty input schema ({}), and inline handler.
    server.tool("get_current_time", "返回当前的日期和时间", {}, async () => ({ content: [{ type: "text", text: new Date().toISOString() }], }));

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/liaotaodcx8/toolkittest'

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