Skip to main content
Glama

Glif

Official
by glifxyz
remove-glif-tool.ts978 B
import { z } from "zod"; import { removeGlif } from "../saved-glifs.js"; import { parseToolArguments, type ToolRequest, } from "../utils/request-parsing.js"; import type { ToolResponse } from "./index.js"; export const schema = z.object({ toolName: z.string(), }); export const definition = { name: "remove_glif_tool", description: "Remove a saved glif tool", inputSchema: { type: "object", properties: { toolName: { type: "string", description: "The tool name of the saved glif to remove", }, }, required: ["toolName"], }, }; export async function handler(request: ToolRequest): Promise<ToolResponse> { const args = parseToolArguments(request, schema); const removed = await removeGlif(args.toolName); return { content: [ { type: "text", text: removed ? `Successfully removed tool "${args.toolName}"` : `Tool "${args.toolName}" not found`, }, ], }; }

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