Skip to main content
Glama
schemas.ts502 B
import { z } from "zod"; // Ask command specific schemas for chat/AI APIs export const StreamChoiceSchema = z.object({ delta: z .object({ content: z.string().optional(), }) .optional(), }); export const StreamResponseSchema = z.object({ choices: z.array(StreamChoiceSchema).optional(), }); export const TextResponseSchema = z.object({ text: z.string(), }); export const ErrorResponseSchema = z.object({ error: z.string().optional(), message: z.string().optional(), });

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/ExpertVagabond/universal-blockchain'

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