Preview alarm results
preview_alarm_settingPreview Alarm
When to use: 알람을 만들거나 고치기 전에 그 쿼리 설정이 지금 데이터로 어떤 값을 내는지 볼 때 — 주요 지표 합계, 직전 기간 대비 증감률, 상위 3행을 돌려준다.
Limitations: 저장도 발송도 하지 않지만 쿼리는 실제로 실행한다(대시보드 조회와 같은 비용). 쿼리 설정만 보고 조건·수신처·메시지는 반영하지 않는다 — 실제로 나갈 문구는 render_alarm_preview 로 본다. 직전 기간 값은 구하지 못하면 비어 있다. 참조하는 대시보드나 데이터를 읽을 권한이 없으면 403, 쿼리 실행에 실패하면 422. 저장 정책은 검사하지 않으므로 미리보기가 성공해도 저장이 거절될 수 있다.
Examples:
Q: 이 알람 설정이면 지금 데이터로 어떤 값이 나와? params: {'body': {'alarm_type': 'SCHEDULE', 'query_config': {'data_source': 'commerce_order', 'measures': ['net_sales'], 'dimensions': ['channel_name'], 'date_filters': {'type': 'last', 'delta': 7, 'delta_freq': 'day'}, 'freq': 'day'}}}
Output shape: object: {measures, prev_measures, delta_pct, measure_columns, dimension_columns, sample_rows(최대 3행), row_count}
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": {
"alarm_type": "<alarm_type>",
"query_config": "<query_config>"
},
"name": "preview_alarm_setting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alarm_type | Yes | ||
| project-id | No | ||
| query_config | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||