Skip to main content
Glama
mackerelio-labs

Mackerel MCP Server

Official

List Alerts

list_alerts
Read-only

Retrieve current and closed alerts from Mackerel to monitor system health and review alert history.

Instructions

Retrieve alerts from Mackerel.

šŸ” USE THIS TOOL WHEN USERS:

  • Check currently active alerts

  • Get a list of alerts including closed alerts

Get all alerts

list_alerts(withClosed=true)

Input Schema

NameRequiredDescriptionDefault
limitNoThe maximum number of alerts to retrieve. When omitted, up to 100 cases are retrieved. The most that can be specified is 100
nextIdNoIf specified, alerts older than the alert with the specified id are retrieved
withClosedNoWhether or not to get resolved alerts. If true, resolved alerts as well as open alerts are retrieved

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already establishes this is a safe read, so the description's job is to add context beyond that. It mentions closed vs. open alerts, but says nothing about result ordering, default page size, or how nextId continues a paged read — the mechanics an agent needs for repeat calls.

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 purpose sentence and use-when bullets are front-loaded and scannable, and the examples are compact. Slight redundancy between the 'including closed alerts' bullet and the withClosed example, but nothing wasteful.

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 no output schema and fully documented parameters, the description covers what to call it for and how to toggle closed alerts. Pagination behavior via nextId is the one gap, though the schema carries it.

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 100%, so all three parameters are already documented. The example list_alerts(withClosed=true) usefully demonstrates that the default excludes resolved alerts, but limit and nextId semantics are left entirely to the schema. Baseline 3 applies.

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?

States a specific verb and resource — 'Retrieve alerts from Mackerel' — and the bullets make clear it returns alert collections rather than a single alert. It does not explicitly contrast with siblings like get_alert or get_alert_logs, which an agent could confuse with it.

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?

The 'USE THIS TOOL WHEN USERS' block gives concrete trigger conditions (active alerts, including closed alerts) and the examples show both default and withClosed invocations. There is no explicit when-not guidance or named alternative for single-alert lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.