Skip to main content
Glama
validation.ts676 B
import { z } from "zod"; export const TimezoneSchema = z .string() .describe("IANA timezone identifier (e.g., 'America/New_York', 'UTC')") .refine( (tz) => { try { Intl.DateTimeFormat(undefined, { timeZone: tz }); return true; } catch { return false; } }, { message: "Invalid timezone identifier" }, ); export const DateTimeFormatSchema = z .enum([ "iso", "rfc2822", "http", "sql", "local", "localeString", "short", "medium", "long", "full", ]) .default("iso") .describe("Output format for datetime"); export const LocaleSchema = z .string() .optional() .describe("Locale for formatting (e.g., 'en-US', 'fr-FR')");

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/JMoak/chrono-mcp'

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