Skip to main content
Glama

Preview alarm results

preview_alarm_setting
Read-only

Preview 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

NameRequiredDescriptionDefault
alarm_typeYes
project-idNo
query_configYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive, closed-world, and the description stays consistent while adding material context: no save or send, but the query is actually executed at dashboard-query cost, save policy is not validated so a successful preview can still be rejected on save, previous-period values may be empty, and it documents 403 (no read permission) and 422 (query failure) outcomes.

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?

Clearly sectioned into when-to-use, limitations, example, and output shape, with the purpose front-loaded. Minor waste: the redundant 'Preview Alarm' header repeats the title, and the output shape restates what the existing output schema already provides.

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 tool with a nested free-form config, it covers cost, side-effect boundaries, error codes, a fallback sibling, and a worked example. Gaps remain around project-id and alarm_type enum semantics, though the output schema means return values did not need restating.

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% and query_config is an unconstrained object, so the description must carry the load; the example does reveal useful query_config fields (data_source, measures, dimensions, date_filters, freq) and an alarm_type value. However project-id is never explained, the SCHEDULE/METRIC/ANOMALY enum is not clarified, and the example nests everything under a 'body' key that does not match the flat schema, which risks confusing an agent.

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?

"Preview Alarm" alone is tautological, but the body immediately specifies the operation: it evaluates a query config against current data and returns metric totals, period-over-period delta, and up to 3 sample rows. It also explicitly separates itself from render_alarm_preview, which shows the outgoing message text instead.

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?

States a concrete trigger (before creating or editing an alarm, to see what the query setting currently produces) and routes to the correct alternative for a different need (render_alarm_preview for the actual message copy). It is clear which config aspects this tool does and does not evaluate.

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