Skip to main content
Glama

Create alarm

create_alarm_setting
Destructive

Create Alarm Setting

When to use: 사용자가 정기 리포트 알람이나 임계값 알람을 새로 만들어 슬랙·이메일·카카오로 받고 싶을 때. 발송 주기·시각·수신처·조건을 모두 담아 저장한다.

When NOT to use: 기존 알람의 수신처나 주기를 바꾸는 경우에는 쓰지 않는다(수정 tool). 일회성 조회는 알람이 아니라 대시보드 조회 tool 을 쓴다.

Limitations: 발송 시각의 분은 10분 단위여야 하고, 여러 대시보드를 묶는 알람은 일일 리포팅 유형에서만 가능하다. 저장 전 설정 컴파일을 통과하지 못하면 422 로 거부된다 — 먼저 알람 설정 컴파일로 확인하는 것을 권장. 조회 응답의 가린 수신처(****)는 새 알람에 쓸 수 없어 422 로 거부된다 — 사용자에게 전체 주소를 받아 넣는다.

Examples:

  • Q: 매일 아침 9시에 지난 7일 매출 요약을 슬랙으로 보내줘 params: {'body': {'name': '일간 매출 요약', 'alarm_type': 'SCHEDULE', 'schedule_interval': 86400, 'send_time': '09:00:00', 'query_config': {'data_source': 'commerce_order', 'measures': ['net_sales'], 'dimensions': ['channel_name'], 'date_filters': {'type': 'last', 'delta': 7, 'delta_freq': 'day'}, 'freq': 'day'}, 'destinations': [{'platform': 'slack', 'destination': '#sales-report'}], 'rules': []}}

Output shape: object: saved alarm setting with its rules

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": {
      "name": "<name>",
      "alarm_type": "<alarm_type>",
      "schedule_interval": "<schedule_interval>",
      "send_time": "<send_time>",
      "query_config": "<query_config>",
      "destinations": "<destinations>",
      "rules": "<rules>"
    },
    "name": "create_alarm_setting"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
rulesYes
send_timeYes
alarm_typeYes
project-idNo
descriptionNo
destinationsYes
query_configYes
schedule_daysNo
send_time_endNo
message_configNo
rule_logical_opNoAND
schedule_intervalYes알람의 **점검 주기**. 한 주기에 한 번 판정하고, 판정이 한 번이니 발송도 한 번이다 — 상한이 주기에 이미 들어 있어 별도의 알림 빈도 축이 없다. 리포트(SCHEDULE)에는 같은 값이 발송 주기다. 조건도 버킷도 없이 "이 시각에 보내라" 가 계약이라 점검과 발송이 같은 사건이다. 주 단위는 여기 두지 않는다 — ``schedule_days`` 요일 필터와 ``DAILY`` 를 함께 쓰면 "매주 월요일" 이 되고, 그쪽이 "몇 요일에" 를 사용자에게 그대로 보여준다. 주기 상수로 표현하면 위상(어느 요일부터 세는가)이 보이지 않는다. 전용 DAG 는 없다. ``alarm_trigger`` 단일 tick(``*/10``)이 interval 필터 없이 due 를 잡으므로, 값을 늘려도 배포 단위가 늘지 않는다.
custom_interval_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, readOnlyHint=false, openWorldHint=false) by disclosing hard constraints: send-time minutes must be in 10-minute units, multi-dashboard alarms only exist for daily reporting type, a 422 is returned if settings fail compilation, and compile-first is recommended. It also warns that masked destinations (****) shown in read responses cannot be reused and trigger a 422, telling the agent to collect full addresses instead — exactly the kind of failure mode an agent cannot infer from structured fields.

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 labeled sections (When to use / When NOT to use / Limitations / Examples) so the key routing decision is reachable in one sentence. The long worked example earns its place by demonstrating nested object shapes, but the trailing 'Output shape' line is redundant against the existing output schema and could be dropped.

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

Completeness5/5

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

Given a mutation tool with destructiveHint, no output explanation needed because an output schema exists, the definition supplies the missing behavioral contract: validation behavior (422), compile-first workflow, recipient-masking pitfall, and a worked multi-part request. Remaining gaps are per-parameter semantics rather than anything that would cause a wrong invocation.

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 description coverage is only 7% across 14 parameters, so the description carries a heavy burden; it partially meets it by showing a concrete params body that reveals the shape of query_config (data_source, measures, dimensions, date_filters, freq) and destinations (platform/destination). However, several parameters — project-id, description, send_time_end, message_config, rule_logical_op, custom_interval_minutes — get no meaning at all beyond the example, leaving half the surface undocumented.

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

Purpose5/5

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

States a specific verb+resource (persist a new recurring-report or threshold alarm with schedule, recipients and conditions) and explicitly separates itself from the update tool and from dashboard query tools used for one-off lookups. An agent can distinguish it from update_alarm_setting and preview/compile tools without opening any schema.

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?

Has an explicit 'When to use' and 'When NOT to use' section that routes modification requests to a different (update) tool and one-off queries to a dashboard-query tool. The alternatives are described by role rather than by exact tool name, so the agent must map them to update_alarm_setting / dashboard read tools itself, which keeps this just below a 5.

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