List Alert Rules

Return a list of active metric alert rules bound to an organization

Usage #

// Import the typed helper
import { listAlertRules } from "@hotglue/sdk/sentry";
const result = await client.execute({
...listAlertRules({
organization_id_or_slug: string,
}),
userId: "user_123",
});
// result is typed as ListAlertRulesOutput
const result = await client.execute({
integration: "sentry",
tool: "list_alert_rules",
userId: "user_123",
input: {
organization_id_or_slug: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["sentry"],
userId: "user_123",
}),
});
await agent.generate("run the List Alert Rules tool");

Input Schema #

organization_id_or_slug string required

Organization ID or slug

This tool calls: #

GET https://sentry.io/api/0/organizations/{organization_id_or_slug}/alert-rules/