Skip to main content
Glama

Analytics MCP

by Ninoambaraa
current-time-tool.ts502 B
import { createTool } from '@mastra/core'; import { z } from 'zod'; const currentTimeSchema = z.object({ time: z.string().describe('Current timestamp in ISO 8601 format'), }); export async function getCurrentIsoTime(): Promise<string> { return new Date().toISOString(); } export const getCurrentTime = createTool({ id: 'getCurrentTime', description: 'Get the current time', outputSchema: currentTimeSchema, execute: async () => { return { time: await getCurrentIsoTime() }; }, });

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/Ninoambaraa/superalink-mcp-analytics'

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