Skip to main content
Glama
soriat

MCP Elicitations Demo Server

by soriat
tool-get-tiny-image.ts778 B
import { z } from "zod"; import { zodToJsonSchema } from "zod-to-json-schema"; import { MCP_TINY_IMAGE } from "../lib/shared.js"; const GetTinyImageSchema = z.object({}); export const getTinyImageTool = { name: "getTinyImage", description: "Returns the MCP_TINY_IMAGE", inputSchema: zodToJsonSchema(GetTinyImageSchema), handler: async (args: any) => { GetTinyImageSchema.parse(args); return { content: [ { type: "text" as const, text: "This is a tiny image:", }, { type: "image" as const, data: MCP_TINY_IMAGE, mimeType: "image/png", }, { type: "text" as const, text: "The image above is the MCP tiny image.", }, ], }; }, };

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/soriat/soria-mcp'

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