Skip to main content
Glama

List alarm history

list_alarm_histories
Read-only

Get Alarm Histories

When to use: 알람이 언제 실행됐고 조건을 충족했는지, 실제로 발송됐는지·실패했는지 최근 기록을 볼 때. 알람 하나만 보려면 alarm_setting_id 로 거른다.

Limitations: 삭제되지 않은 이 프로젝트 알람의 기록만 나온다 — 누가 만들었든 같은 프로젝트 멤버는 같은 알람 기록을 본다. 이 프로젝트에 없는 알람 id 로 거르면 오류 없이 빈 목록이다. 최신순이며 한 번에 최대 100건(limit), 다음 페이지는 offset 으로 넘긴다. status 는 조건 판정(TRIGGERED 충족·OK 미충족·SKIPPED 건너뜀·ERROR 실패), delivery_status 는 수신자에게 실제로 닿았는지로 서로 다른 축이다 — 조건을 충족했어도 전달은 실패할 수 있고, null 은 발송을 시도하지 않았다는 뜻이다. 발송 본문은 포함되지 않는다. 결과 줄의 수신처 주소는 가려서 나오고, 발송 전체가 예외로 끝난 기록의 notification_results.error 는 원문 대신 alarm_notification_failed 로 나온다 — 원문 사유는 웹 이력 화면에서 본다.

Examples:

  • Q: 최근 알람 발송 기록 보여줘 params: {'query': {'limit': 20}}

  • Q: 이 알람 최근에 제대로 발송됐어? params: {'query': {'alarm_setting_id': 'a1b2c3d4-0000-4000-8000-000000000000', 'limit': 10}}

Output shape: object: {items[], total_count, limit, offset}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_alarm_histories"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
project-idNo
alarm_setting_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, the description discloses project-level visibility across members, that unknown alarm ids yield an empty list rather than an error, newest-first ordering, a 100-item cap with offset paging, the distinction between status (condition evaluation) and delivery_status (actual delivery) with null meaning no send attempt, that message bodies are excluded, that recipient addresses are redacted, and that failed-delivery errors are masked as alarm_notification_failed.

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 definition is long but organized into When to use / Limitations / Examples / Output shape, with the operative constraints front-loaded. Some material is redundant — the output shape line duplicates the existing output schema, and the heading restates the title — but nearly every sentence adds actionable constraint detail.

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 read-only list tool with an output schema, this covers the important behavioral caveats (redaction, error masking, empty results, pagination) that the schema cannot express. The only real gap is the unexplained project-id parameter and the absence of an explicit contrast with get_alarm_history.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the load; it explains alarm_setting_id as a filter, limit as a per-page maximum of 100, and offset as page advancement. The project-id parameter is never explained (its null behavior and whether it overrides the ambient project are unclear), leaving one of four parameters undocumented 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 description goes well beyond the title, stating that this returns recent alarm execution records including whether conditions were met and whether delivery succeeded or failed, and it scopes results to the current project. It does not explicitly name the sibling get_alarm_history or explain how this list differs from that single-record tool, so differentiation is left implicit.

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?

An explicit 'When to use' clause covers the main scenario (viewing recent alarm run/delivery history) and tells the agent to filter with alarm_setting_id for a single alarm. There is no stated when-not-to-use or named alternative tool, which keeps it short of 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