Skip to main content
Glama

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
NameRequiredDescriptionDefault
timezoneNoTimezone for the datetime (e.g., "UTC", "America/New_York", "Europe/London"). Defaults to UTC.UTC
formatNoOutput format: "iso" for ISO 8601, "human" for human-readable, "adr" for ADR date format (YYYY-MM-DD), "all" for all formatsall
includeTimestampNoInclude Unix timestamp in milliseconds

Implementation Reference

  • 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' },
        },
      },
    });
  • 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' },
        },
      },
    });

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/tosin2013/mcp-adr-analysis-server'

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