Skip to main content
Glama
tool_schemas.ts799 B
import { z } from "zod"; /** * Schema for URL-based fetch operations that can accept: * - A single URL string * - A single URL object * - An array of URL strings and/or objects */ export const UrlFetchInputSchema = z.union([ z.string().url("Input must be a valid URL string"), z.object({ url: z .string() .url("Input must contain a valid URL string under the 'url' key"), }), z.array( z.union([ z.string().url("Each array item must be a valid URL string"), z.object({ url: z .string() .url( "Each array item must contain a valid URL string under the 'url' key" ), }), ]) ), ]); // Type exports for use in function parameters export type UrlFetchInput = z.infer<typeof UrlFetchInputSchema>;

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/maverickg59/sushimcp'

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