Skip to main content
Glama

Gotas Commerce MCP Server

chatCompletionUtils.ts847 B
import { type ChatCompletionAssistantMessageParam, type ChatCompletionFunctionMessageParam, type ChatCompletionMessageParam, type ChatCompletionToolMessageParam, } from '../resources'; export const isAssistantMessage = ( message: ChatCompletionMessageParam | null | undefined, ): message is ChatCompletionAssistantMessageParam => { return message?.role === 'assistant'; }; export const isFunctionMessage = ( message: ChatCompletionMessageParam | null | undefined, ): message is ChatCompletionFunctionMessageParam => { return message?.role === 'function'; }; export const isToolMessage = ( message: ChatCompletionMessageParam | null | undefined, ): message is ChatCompletionToolMessageParam => { return message?.role === 'tool'; }; export function isPresent<T>(obj: T | null | undefined): obj is T { return obj != null; }

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/caiovicentino/mcpGOTAS'

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