Skip to main content
Glama

Glif

Official
by glifxyz
my-glifs.ts801 B
import { z } from "zod"; import { getMyGlifs } from "../api.js"; import type { ToolResponse } from "./index.js"; export const schema = z.object({}); export const definition = { name: "my_glifs", description: "Get a list of your glifs", inputSchema: { type: "object", properties: {}, required: [], }, }; export async function handler(): Promise<ToolResponse> { const glifs = await getMyGlifs(); const formattedGlifs = glifs .map( (glif) => `${glif.name} (${glif.id})\n${glif.description}\nCreated: ${new Date( glif.createdAt ).toLocaleString()}\nRuns: ${glif.completedSpellRunCount}\n` ) .join("\n"); return { content: [ { type: "text", text: `Your glifs:\n\n${formattedGlifs}`, }, ], }; }

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/glifxyz/glif-mcp-server'

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