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
| Name | Required | Description | Default |
|---|---|---|---|
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()); },
- index.ts:58-60 (schema)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()); }, });
- index.ts:79-81 (helper)Helper function that returns the current timestamp using Date.now().function getNow() { return Date.now(); }