madeonsol_coordination_alerts_get
Retrieve a specific coordination alert rule by its UUID to review its configuration and triggers.
Instructions
Get one coordination alert rule by id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Rule UUID |
Implementation Reference
- src/index.ts:810-818 (handler)Handler for madeonsol_coordination_alerts_get — executes a GET request to /kol/coordination/alerts/{id} via the restQuery helper, returning a coordination alert rule by its UUID.
server.tool( "madeonsol_coordination_alerts_get", "Get one coordination alert rule by id.", { id: z.string().describe("Rule UUID") }, { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, async ({ id }) => ({ content: [{ type: "text" as const, text: await restQuery("GET", `/kol/coordination/alerts/${encodeURIComponent(id)}`) }], }) ); - src/index.ts:813-813 (schema)Input schema: one required parameter 'id' (string, a Rule UUID).
{ id: z.string().describe("Rule UUID") }, - src/index.ts:810-818 (registration)Registered via server.tool() within registerTools(), gated behind hasRestAuth (requires MADEONSOL_API_KEY).
server.tool( "madeonsol_coordination_alerts_get", "Get one coordination alert rule by id.", { id: z.string().describe("Rule UUID") }, { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, async ({ id }) => ({ content: [{ type: "text" as const, text: await restQuery("GET", `/kol/coordination/alerts/${encodeURIComponent(id)}`) }], }) ); - src/index.ts:451-466 (helper)Helper function restQuery used by the handler to make authenticated REST API calls to the MadeOnSol API v1 endpoints.
async function restQuery(method: string, path: string, body?: unknown): Promise<string> { const headers: Record<string, string> = { "Content-Type": "application/json", ...apiKeyHeaders(), }; const res = await fetch(`${BASE_URL}/api/v1${path}`, { method, headers, ...(body ? { body: JSON.stringify(body) } : {}), }); if (!res.ok) { const text = await res.text().catch(() => ""); return `Error ${res.status}: ${text}`; } return JSON.stringify(await res.json(), null, 2); }