Skip to main content
Glama

Currents

Official
by currents-dev
get-run.ts669 B
import { z } from "zod"; import { fetchApi } from "../../lib/request.js"; const zodSchema = z.object({ runId: z.string().describe("The run ID to fetch details for."), }); const handler = async ({ runId }: z.infer<typeof zodSchema>) => { const data = await fetchApi(`/runs/${runId}`); if (!data) { return { content: [ { type: "text" as const, text: "Failed to retrieve run data", }, ], }; } return { content: [ { type: "text" as const, text: JSON.stringify(data, null, 2), }, ], }; }; export const getRunDetailsTool = { schema: zodSchema.shape, handler, };

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/currents-dev/currents-mcp'

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