We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ilyassesalama/celigo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { z } from "zod";
import { api, filterCeligoResponse } from "../../api.js";
import { Connection } from "../../types.js";
import { createTool } from "../helpers.js";
export const getConnection = createTool({
name: "get_connection",
description: "Get a specific Celigo connection by ID",
inputSchema: {
connectionId: z.string().describe("The ID of the connection to retrieve"),
},
handler: async ({ connectionId }, context) => {
const response = await api.get<Connection>(
`/connections/${connectionId}`,
context.accessToken,
context.region
);
return filterCeligoResponse(response.data);
}
});