Skip to main content
Glama

get_unixtime

Retrieve the current Unix timestamp for time-sensitive operations, data logging, or system synchronization.

Instructions

Get unixtime (e.g. 1746627290)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler for the 'get_unixtime' tool. Computes the current Unix timestamp using dayjs().unix() and returns it as a text content block. This is also the registration point via server.tool.
    server.tool("get_unixtime", "Get unixtime (e.g. 1746627290)", async () => { const unixTimestamp = dayjs().unix(); return { content: [ { type: "text", text: String(unixTimestamp), }, ], }; });
  • src/index.ts:35-45 (registration)
    Registration of the 'get_unixtime' tool using server.tool, with description and inline handler function.
    server.tool("get_unixtime", "Get unixtime (e.g. 1746627290)", async () => { const unixTimestamp = dayjs().unix(); return { content: [ { type: "text", text: String(unixTimestamp), }, ], }; });

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/t-shiratori/time-tools-mcp-server'

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