Skip to main content
Glama

Timezone MCP Server

by sam-artuso
get-regions.tool.tsβ€’725 B
import { Injectable } from '@nestjs/common' import { Tool } from '@rekog/mcp-nest' import { z } from 'zod' import { TimezoneService } from '../../timezone/timezone.service' @Injectable() export class GetRegionsTool { constructor(private readonly timezoneService: TimezoneService) {} @Tool({ name: 'get_regions', description: 'Get a list of all available timezone regions (e.g., America, Europe, Asia)', parameters: z.object({}), }) async execute() { const regions = this.timezoneService.getRegions() return { content: [ { type: 'text', text: JSON.stringify({ regions, count: regions.length, }), }, ], } } }

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