Skip to main content
Glama

Update alarm

update_alarm_setting
Destructive

Update Alarm Setting

When to use: 이미 만들어진 알람의 발송 주기·시각·수신처·쿼리·조건을 바꿀 때. 보낸 필드만 덮어쓰고 나머지는 저장된 값을 유지한다.

When NOT to use: 알람을 잠시 끄거나 다시 켜기만 할 때는 toggle_alarm_setting 을 쓰고, 새 알람을 만드는 경우에는 create_alarm_setting 을 쓴다.

Limitations: 조건 목록을 보내면 기존 조건을 통째로 교체한다(부분 수정 아님). 쿼리 설정을 보내면 저장 전 컴파일을 통과해야 하며 실패 시 422. 수신처를 바꾸지 않으면 수신처 필드를 빼고 보낸다. 조회 응답의 가린 수신처(****)를 그대로 보내면 그 수신처는 저장된 원래 값으로 유지되고, 이 알람의 수신처와 맞지 않는 가린 값은 422. 가린 값이 겹치면(첫 글자와 도메인이 같은 이메일 둘 등) 그 가린 값에 해당하는 수신처가 모두 유지되므로, 그중 하나를 빼려면 남길 수신처의 전체 주소를 보내야 한다(없으면 사용자에게 받는다).

Examples:

  • Q: 이 알람을 매주 월요일 발송으로 바꿔줘 params: {'path': {'alarm_id': 'a1b2c3d4-0000-4000-8000-000000000000'}, 'body': {'schedule_interval': 86400, 'schedule_days': [0]}}

Output shape: object: updated 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": {
      "alarm_id": "<alarm_id>"
    },
    "name": "update_alarm_setting"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
rulesNo
alarm_idYes
send_timeNo
alarm_typeNo
project-idNo
descriptionNo
destinationsNo
query_configNo
schedule_daysNo
send_time_endNo
message_configNo
rule_logical_opNo
schedule_intervalNo
custom_interval_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false; the description earns credit by explaining *how* it is destructive: only sent fields overwrite, the rules list is wholesale replaced (not partially edited), query_config must pass pre-save compilation or returns 422, and masked destinations (****) resolve to the stored value. It does not cover behavior for changing alarm_type or how custom_interval_minutes interacts with schedule_interval, which is the remaining gap.

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?

Sectioned headers (When to use / When NOT to use / Limitations / Examples / Output shape) front-load the routing decision, which is good structure. The masked-value paragraph is dense and long but each clause carries a real edge case; the trailing 'Output shape' line is largely redundant with the existing output schema.

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 destructive partial-update tool with 15 params and a rich output schema, it covers the risky behaviors an agent must know: partial semantics, full rule replacement, compile failure as 422, and the masked-destination contract. What is missing is guidance on mutually exclusive or coupled fields (schedule_interval vs custom_interval_minutes, alarm_type changes), which matters for a tool this wide.

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 0% across 15 params, so the description must compensate. It explains the semantics of destinations (masked-value retention, 422 on mismatched masks), query_config (compile-before-save), rules (full replacement), and illustrates schedule_interval/schedule_days via the Monday example, but leaves name, description, send_time, send_time_end, alarm_type, message_config, rule_logical_op, project-id, and custom_interval_minutes without any meaning beyond their titles.

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 (update) plus the resource (an existing alarm) and enumerates the mutable dimensions: send interval, send time, destinations, query, and conditions. It also distinguishes this from toggle_alarm_setting and create_alarm_setting, so an agent can separate it from the closest siblings 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 Guidelines5/5

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

Has explicit 'when to use' and 'when NOT to use' sections, naming toggle_alarm_setting for on/off changes and create_alarm_setting for new alarms. The conditions that route to a sibling are stated directly rather than inferred.

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