Skip to main content
Glama

Validate alarm settings

compile_alarm_setting
Read-only

Compile Alarm

When to use: 알람을 저장하기 전에 그 설정이 실제로 실행 가능한지 확인할 때. 저장 경로와 동일한 파싱을 수행해 정규화된 설정과 주의사항을 돌려주므로, 알람 생성/수정 직전 dry-run 으로 쓴다.

Limitations: 데이터를 읽지 않는다 — 실제 값·행 수가 필요하면 알람 미리보기를 쓴다. 커스텀 대시보드를 참조하는 섹션은 쿼리가 발송 시점에 해석되므로 여기서 검증되지 않고 warnings 로만 알린다. 조건 검증은 조건을 실제로 평가하는 임계값 알람에만 적용된다. 실패는 422 problem+json.

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: {normalized_query_config, warnings[]}

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

Input Schema

NameRequiredDescriptionDefault
rulesNo
alarm_typeYes
project-idNo
destinationsNo
query_configYes
message_configNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnlyHint/destructiveHint annotations it discloses real behavioral traits: no data is read, dashboard-referencing sections are not validated and surface only as warnings, condition validation applies only to threshold alarms that actually evaluate conditions, and failures return 422 problem+json. It does not cover auth/permission needs, and the 'Output shape' line largely repeats the existing output schema, so it falls short of a 5.

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?

The labeled structure (When to use / Limitations / Examples / Output shape) is front-loaded and easy to scan, and most sentences carry information an agent needs. Minor waste: the 'Compile Alarm' header merely restates the name, and the output-shape line duplicates 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 dry-run validator with an output schema and solid annotations, the description supplies usage rules, partial-validation caveats, an error status, and a concrete example — enough to call it correctly. The gap is the unexplained non-query_config parameters, which the 0% schema coverage leaves undocumented.

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 6 parameters, and query_config/rules/destinations/message_config are freeform objects, so the schema itself conveys little. The worked example usefully illustrates the shape of query_config (data_source, measures, dimensions, date_filters, freq) and alarm_type, but rules, destinations, message_config and project-id get no explanation, leaving half the parameters opaque in both places.

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?

The 'When to use' block states a concrete action: run the same parsing as the save path to check an alarm setting is actually executable, returning a normalized config plus warnings, used as a dry-run before create/update. It also distinguishes itself from the preview tool ('does not read data — use alarm preview if you need real values/row counts'). The bare 'Compile Alarm' header is vague on its own, but the body resolves it.

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?

It gives an explicit trigger (immediately before creating or modifying an alarm), an explicit non-trigger routed to a named alternative (preview when actual values or row counts are needed), and further exclusions in the Limitations block. An agent can decide between this and the preview/validation siblings without further inference.

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