We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
datetime.ts•445 B
import { tool } from "ai";
import { z } from "zod";
/**
* Date and time utility tool
* Provides current date and time in multiple formats
*/
export const dateTimeTool = tool({
description: "Get the current date and time",
inputSchema: z.object({}),
execute: async () => {
const now = new Date();
return {
date: now.toLocaleDateString(),
time: now.toLocaleTimeString(),
iso: now.toISOString(),
};
},
});