Skip to main content
Glama
helper.cpp475 B
#include "../../include/utils/helper.h" #include <algorithm> #include <stdexcept> namespace utils { bool Helper::validateInput(const void* data) { if (data == nullptr) { throw std::invalid_argument("Data cannot be null"); } return true; } std::string Helper::formatOutput(const std::string& value) { std::string result = value; std::transform(result.begin(), result.end(), result.begin(), ::toupper); return result; } } // namespace utils

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/y3i12/nabu_nisaba'

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