get_current_time_in_rfc3339
Retrieve current server time in RFC3339 format for Amsterdam timezone to use with NS travel planning tools requiring precise timestamps.
Instructions
Get the current server time (Europe/Amsterdam timezone) in RFC3339 format. This can be used as input for other tools that require date-time parameters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/http-server.ts:470-476 (handler)Inline handler implementation for the 'get_current_time_in_rfc3339' tool. Creates a new Date object, formats it to ISO string (RFC3339), and returns it with timezone information using ResponseFormatter.case 'get_current_time_in_rfc3339': { const now = new Date(); return ResponseFormatter.formatSuccess({ datetime: now.toISOString(), timezone: 'Europe/Amsterdam' }); }
- src/index.ts:342-348 (handler)Inline handler implementation for the 'get_current_time_in_rfc3339' tool. Creates a new Date object, formats it to ISO string (RFC3339), and returns it with timezone information using ResponseFormatter.case 'get_current_time_in_rfc3339': { const now = new Date(); return ResponseFormatter.formatSuccess({ datetime: now.toISOString(), timezone: 'Europe/Amsterdam' }); }
- src/http-server.ts:303-310 (registration)Tool registration entry in the ListToolsRequestSchema handler, including name, description, and empty input schema.{ name: 'get_current_time_in_rfc3339', description: 'Get the current server time (Europe/Amsterdam timezone) in RFC3339 format. This can be used as input for other tools that require date-time parameters.', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:175-182 (registration)Tool registration entry in the ListToolsRequestSchema handler, including name, description, and empty input schema.{ name: 'get_current_time_in_rfc3339', description: 'Get the current server time (Europe/Amsterdam timezone) in RFC3339 format. This can be used as input for other tools that require date-time parameters.', inputSchema: { type: 'object', properties: {} } },
- src/http-server.ts:306-309 (schema)Input schema for the tool: an empty object (no parameters required). Defined within the tool registration.inputSchema: { type: 'object', properties: {} }