Get Ai Automation
get_ai_automationRetrieve a specific AI automation by ID to inspect its prompt, triggers, destination, allowed tools, skills, and run limits. Verify read-only how scheduled, event-driven, or on-demand automations run.
Instructions
Get one AI automation by id: its prompt, triggers, destination, allowed tools, attached skills and run limits. Read-only. An AI automation is a saved instruction (prompt) that a Rootly AI agent runs on a schedule, on a matching event (incident, alert, Slack message, webhook) or on demand. When it runs, the agent may only use the tools listed in the automation's allowed_tool_keys (all team-allowed tools when null), and it posts its answer to the configured destination (a Slack channel or the incident timeline), or nowhere when destination_kind is none.
Requires OAuth scope ai.automations:read.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_ai_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Required. ID of the automation (fills `{id}` in /v1/ai/automations/{id}). Pass it as `id` -- this tool has no `automation_id` argument. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||