"""
Mock implementation of the execute_query function for testing.
"""
def execute_query(query):
"""
Mock implementation of the execute_query function.
Returns a sample result.
"""
if "SELECT" not in query.upper():
raise ValueError("Only SELECT queries are allowed")
# Return a sample result
return [{"id": 1, "name": "Test 1"}, {"id": 2, "name": "Test 2"}]
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/startreedata/mcp-pinot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server