Skip to main content
Glama

getNow

Retrieve the current timestamp instantly with this tool on Cal Server, a mathematical expression calculator designed for precise and efficient computations.

Instructions

Get the current timestamp

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • index.ts:61-63 (handler)
    Execute handler for the getNow tool: calls the getNow helper and returns the current timestamp as a string.
    execute: async (args) => { return String(getNow()); },
  • Zod schema defining empty input parameters for the getNow tool (no arguments required).
    parameters: z.object({ }),
  • index.ts:55-64 (registration)
    Registration of the getNow tool with the FastMCP server.
    server.addTool({ name: "getNow", description: "Get the current timestamp", parameters: z.object({ }), execute: async (args) => { return String(getNow()); }, });
  • Helper function that returns the current timestamp using Date.now().
    function getNow() { return Date.now(); }

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/pwh-pwh/cal-mcp'

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