Skip to main content
Glama

DNS Doctor - Email & DMARC

Get Monitoring Alerts

get_alerts
Read-onlyIdempotent

Use this when a signed-in operator asks what changed on a monitored domain, whether its website went down, or what the monitoring has flagged. Read the monitoring alert log for the domains the caller's account monitors, newest first, including website uptime incidents (site_down, site_partial, site_recovered, and site_blocked when the site's protection refuses our checks). Needs a connected DNS Doctor account or an API token. Each row carries id, domain, type, check, summary, a deterministic detail map, created_at, email_sent_at, acknowledged_at and delivery_class — a 'dashboard_only' row was deliberately kept out of the digest mail, so an agent watching only the inbox would never see it; this log is the complete picture. PAGE DOWN BEFORE ADVANCING since: next_before is non-null exactly when older rows remain, and a caller that ignores it, takes a full page and moves its watermark to the newest row it saw drops every row it did not receive. since is an INCLUSIVE floor, so rows repeat rather than go missing — de-duplicate on id. READ-ONLY by decision: there is no ack and no delete here, because acknowledging an alert is the human's own triage on their dashboard and an agent that acks on their behalf silences a row they have never seen. Report what the log says and let them clear it.

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

Input Schema

NameRequiredDescriptionDefault
typeNoOptional alert-type filter, e.g. 'record_changed'. An unknown value is rejected rather than silently returning an empty page — omit it unless you know the exact type.
limitNoPage size, 1..100 (default 50). Page down with `before` before you advance `since`, or you will skip every row you did not receive.
sinceNoOptional ISO-8601 timestamp: return alerts created at or after it (INCLUSIVE). Poll by storing the newest created_at you have seen and passing it back — rows repeat rather than go missing, so de-duplicate on id.
beforeNoThe opaque cursor from a previous page's next_before, relayed verbatim to fetch the next older page. Never construct or edit one.
domainNoOptional filter to ONE of the account's verified monitored domains. Omit it for every domain the account monitors; an unowned or unknown name is refused as not found.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, non-open-world, so the description correctly spends its budget elsewhere: auth requirement (connected account or API token), ordering (newest first), pagination hazard (page down with next_before before advancing `since` or you drop rows), inclusive `since` semantics with id de-duplication, and the meaning of delivery_class='dashboard_only' as a row deliberately excluded from digest mail.

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?

Front-loaded with the trigger condition, then the data returned, then the pagination contract, then the read-only rationale — a sound ordering with no filler sentences. It runs long, and the closing read-only justification, while useful, could be compressed to a clause without losing the safety signal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter, read-only list tool with an output schema, this covers the risky parts an agent actually has to get right: auth, ordering, paging, dedupe, and the dashboard_only caveat that a naive inbox-only reader would miss. Returned row fields are enumerated even though an output schema exists, which is mild redundancy but directly supports the delivery_class warning.

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 coverage is 100%, so baseline is 3, and the description earns an extra point by explaining the interaction between `since` and `before` as a watermark protocol rather than as isolated fields — naming the exact failure mode of skipping rows. It does not add type-specific detail for `type` or `domain` beyond what the schema says, such as valid alert types or verified-domain checks.

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?

The description names a concrete action and resource: 'Read the monitoring alert log for the domains the caller's account monitors, newest first.' It enumerates which incident types appear (site_down, site_partial, site_recovered, site_blocked) and frames the operator question it answers, so an agent can distinguish this read log from mutation siblings like watch_record_change without opening a 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?

Usage is stated as an explicit trigger ('Use this when a signed-in operator asks what changed... whether its website went down'), and the exclusions are explicit too: there is no ack and no delete, and the reasoning that acknowledging is the human's own triage tells the agent not to attempt it. It also scopes access to the caller's own account domains.

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.