Skip to main content
Glama

Databutton MCP Server

Official
by databutton
tool-request-utils.ts499 B
import type { ZodSchema } from "zod"; import { fromError } from "zod-validation-error"; import type { RawArgs } from "../types.js"; export const parseToolInput = <T>({ input, schema, }: { input: RawArgs; schema: ZodSchema; }): { success: true; data: T } | { success: false; message: string } => { const parsed = schema.safeParse(input); if (parsed.success) { return { success: true, data: parsed.data as T }; } return { success: false, message: fromError(parsed.error).toString() }; };

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/databutton/databutton-mcp'

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