Skip to main content
Glama

HomeAssistant MCP

helpers.tsโ€ข423 B
/** * Formats a tool call response into a standardized structure * @param obj The object to format * @param isError Whether this is an error response * @returns Formatted response object */ export const formatToolCall = (obj: any, isError: boolean = false) => { const text = obj === undefined ? 'undefined' : JSON.stringify(obj, null, 2); return { content: [{ type: "text", text, isError }], }; };

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/jango-blockchained/advanced-homeassistant-mcp'

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