Skip to main content
Glama

Preview alarm message

render_alarm_preview
Read-only

Render Preview Alarm

When to use: 알람이 실제로 보낼 메시지 원문을 채널(slack·email·kakao)별로 미리 볼 때. 저장하기 전에 문구와 구성을 사용자에게 보여 주고 확인받는 용도.

Limitations: 저장도 발송도 하지 않지만 발송과 같은 경로로 쿼리를 실행하고 조건을 평가한다. channels 를 비우면 slack 만 그린다. 조건 알람(METRIC/ANOMALY)이 지금 조건을 충족하지 않으면 triggered=false 이고 조건 카드 없이 그려진다. 평가 결과가 ERROR 면 channels 가 비고 error 에 사유가 오고, 평가 자체가 예외로 실패하거나 지원하지 않는 분석 유형이면 422 다. 수신처는 받지 않으므로 누구에게 갈지는 알 수 없다. 참조 대시보드나 데이터를 읽을 권한이 없으면 403. 저장과 같은 정책(모호한 query_config, 섹션 수 한도, kakao 와 다중 대시보드 조합 등)을 어기면 평가 전에 422, 참조 대시보드가 이 프로젝트에 없으면 404 다.

Examples:

  • Q: 이 알람이 슬랙으로 어떻게 보일지 미리 보여줘 params: {'body': {'name': '일간 매출 요약', 'alarm_type': 'SCHEDULE', 'schedule_interval': 86400, 'query_config': {'data_source': 'commerce_order', 'measures': ['net_sales'], 'dimensions': ['channel_name'], 'date_filters': {'type': 'last', 'delta': 7, 'delta_freq': 'day'}, 'freq': 'day'}, 'channels': ['slack']}}

Output shape: object: {channels[{channel, subject, slack_blocks | body_html | kakao_content, error_code}], triggered, status, error}

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": "render_alarm_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
rulesNo
channelsNo
alarm_typeYes
project-idNo
descriptionNo
query_configYes
message_configNo
rule_logical_opNoAND
schedule_intervalNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say readOnly/no-destructive/closed-world; the description adds the non-obvious fact that the tool still executes queries and evaluates conditions on the send path even though it neither saves nor sends. It further discloses per-channel rendering, the triggered=false rendering mode, error-channel population, and the 403/404/422 failure boundaries — real behavior beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then when-to-use, limitations, example, and output shape in a predictable order. The limitations paragraph is dense and mixes several error paths, but each sentence carries distinct information and nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a preview tool with nested objects and a 10-parameter schema, the description covers the high-risk semantics (query execution, error codes, channel defaults) and even states the output shape, which the output schema already provides. The main gap is documentation of the rule/message_config parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 10 parameters, so the description must carry the load. It explains the empty-channels default and the example payload illustrates name/alarm_type/schedule_interval/query_config/channels, but rules, rule_logical_op, message_config, project-id, and description are never explained. Partial compensation only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: preview the exact message text an alarm would send, broken down per channel (slack·email·kakao). The 'Render Preview Alarm' heading plus the when-to-use line make the purpose unambiguous, though no sibling preview tool (e.g. preview_alarm_setting) is named to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

A dedicated 'When to use' section scopes it to showing the user the wording/layout before saving. It gives concrete conditions (empty channels → slack only; condition not met → triggered=false; ERROR vs. 422 vs. 403 vs. 404), which is strong context, but it never names an alternative tool for the adjacent cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources