Skip to main content
Glama
by sinch
utils.ts736 B
import { PromptResponse } from './types'; import { USER_AGENT } from './user-agent'; export const isPromptResponse = (x: any): x is PromptResponse => { return x instanceof PromptResponse; } export const matchesAnyTag= (tags: string[], filteringTags: string[]): boolean => { if (!filteringTags || filteringTags.length === 0) { return true; } const normalizedTags = tags.map(tag => tag.toLowerCase()); const normalizedFilteringTags = filteringTags.map(tag => tag.toLowerCase()); return normalizedTags.some(tag => normalizedFilteringTags.includes(tag)); } export const formatUserAgent = (toolName: string, userId: string): string => { return USER_AGENT.replace('{toolName}', toolName).replace('{userId}', userId); }

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/sinch/sinch-mcp-server'

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