Skip to main content
Glama
KallivdH

NS Travel Information Server

by KallivdH

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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' }); }
  • 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' }); }
  • 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: {} } },
  • Input schema for the tool: an empty object (no parameters required). Defined within the tool registration.
    inputSchema: { type: 'object', properties: {} }

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/KallivdH/ns-mcp-server'

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