get_current_time
Retrieve the current date and time in a standardized format using this tool in the MCP Server Scaffold, designed for secure and controlled interactions within AI systems.
Instructions
Get the current date and time
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:87-96 (handler)Handler for the 'get_current_time' tool that returns the current date and time in ISO format using new Date().case 'get_current_time': const now = new Date(); return { content: [ { type: 'text', text: `Current time: ${now.toISOString()}`, }, ], };
- src/index.ts:59-66 (registration)Registration of the 'get_current_time' tool in the listTools handler, including name, description, and empty input schema.{ name: 'get_current_time', description: 'Get the current date and time', inputSchema: { type: 'object', properties: {}, }, } as Tool,