get_time
Retrieve the current system time using this tool from the Bootstrap MCP Server. Ideal for applications requiring accurate time synchronization or logging.
Instructions
Get the current time
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:129-139 (handler)The handler function that implements the 'get_time' tool. It fetches the current date and time using new Date() and returns it in ISO string format as text content.private handleGetTime() { const now = new Date() return { content: [ { type: 'text', text: `Current time: ${now.toISOString()}`, }, ], } }
- src/server.ts:41-48 (schema)The schema definition for the 'get_time' tool, specifying its name, description, and an empty input schema (no parameters required).{ name: 'get_time', description: 'Get the current time', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:86-87 (registration)Registration of the 'get_time' tool handler in the switch statement for tool execution dispatching.case 'get_time': return this.handleGetTime()