Skip to main content
Glama

Timezone MCP Server

by sam-artuso
compare-timezones.prompt.tsβ€’1.47 kB
import { Injectable } from '@nestjs/common' import { Prompt } from '@rekog/mcp-nest' import { z } from 'zod' @Injectable() export class CompareTimezonesPrompt { @Prompt({ name: 'compare_timezones', description: 'Get guidance on comparing current times across multiple timezones', parameters: z.object({ timezone1: z .string() .describe('The first IANA timezone identifier (e.g., "America/New_York")'), timezone2: z.string().describe('The second IANA timezone identifier (e.g., "Europe/London")'), }), }) async execute({ timezone1, timezone2 }: { timezone1: string; timezone2: string }) { return { description: `Guidance for comparing times in ${timezone1} and ${timezone2}`, messages: [ { role: 'user' as const, content: { type: 'text' as const, text: `I need to compare the current time between ${timezone1} and ${timezone2}. Can you show me what time it is in both locations right now and calculate the time difference?`, }, }, { role: 'assistant' as const, content: { type: 'text' as const, text: `I'll get the current time for both ${timezone1} and ${timezone2} using the get_timezone_info tool. This will show you the local time in each timezone, their UTC offsets, and make it easy to see the time difference between them.`, }, }, ], } } }

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/sam-artuso/demo-mcp'

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