Skip to main content
Glama
localstack
by localstack
response-builder.ts613 B
interface ToolResponse { content: Array<{ type: "text"; text: string }>; } export class ResponseBuilder { public static success(message: string): ToolResponse { return { content: [{ type: "text", text: `✅ ${message}` }], }; } public static error(title: string, details?: string): ToolResponse { let text = `❌ **${title}**`; if (details) { text += `\n\n${details}`; } return { content: [{ type: "text", text }], }; } public static markdown(content: string): ToolResponse { return { content: [{ type: "text", text: content }], }; } }

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

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