Skip to main content
Glama

Plainly Videos MCP Server

toolResponse.ts516 B
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; export const toToolResponse = ( output: { [key: string]: any; }, isError = false ): CallToolResult => { try { const outputString = JSON.stringify(output); return { content: [ { type: "text", text: outputString, }, ], structuredContent: output, isError, }; } catch { return { content: [], structuredContent: output, isError, }; } };

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

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