get_current_datetime
Retrieve current date and time in multiple formats for timestamping architectural decision records and research documents. Supports ISO 8601, human-readable, and ADR-specific formats with timezone options.
Instructions
Get the current date and time in various formats. Useful for timestamping ADRs, research documents, and other architectural artifacts. Returns ISO 8601, human-readable, and ADR-specific date formats.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | Timezone for the datetime (e.g., "UTC", "America/New_York", "Europe/London"). Defaults to UTC. | UTC |
| format | No | Output format: "iso" for ISO 8601, "human" for human-readable, "adr" for ADR date format (YYYY-MM-DD), "all" for all formats | all |
| includeTimestamp | No | Include Unix timestamp in milliseconds |
Implementation Reference
- src/tools/tool-catalog.ts:1341-1359 (registration)Registration of the 'get_current_datetime' tool in the central TOOL_CATALOG Map, including metadata, category ('utility'), complexity ('simple'), input schema, and indication that it requires no AI execution (requiresAI: false). This is the primary definition and registration point for the tool.TOOL_CATALOG.set('get_current_datetime', { name: 'get_current_datetime', shortDescription: 'Get current date/time', fullDescription: 'Gets the current date and time in various formats.', category: 'utility', complexity: 'simple', tokenCost: { min: 50, max: 100 }, hasCEMCPDirective: true, // Phase 4.3: Simple tool - datetime retrieval relatedTools: [], keywords: ['datetime', 'time', 'date', 'current'], requiresAI: false, inputSchema: { type: 'object', properties: { format: { type: 'string', enum: ['iso', 'human', 'adr', 'all'] }, timezone: { type: 'string' }, }, }, });
- src/tools/tool-catalog.ts:1341-1359 (schema)Input schema definition for the get_current_datetime tool: accepts optional 'format' (iso, human, adr, all) and 'timezone' parameters.TOOL_CATALOG.set('get_current_datetime', { name: 'get_current_datetime', shortDescription: 'Get current date/time', fullDescription: 'Gets the current date and time in various formats.', category: 'utility', complexity: 'simple', tokenCost: { min: 50, max: 100 }, hasCEMCPDirective: true, // Phase 4.3: Simple tool - datetime retrieval relatedTools: [], keywords: ['datetime', 'time', 'date', 'current'], requiresAI: false, inputSchema: { type: 'object', properties: { format: { type: 'string', enum: ['iso', 'human', 'adr', 'all'] }, timezone: { type: 'string' }, }, }, });