Skip to main content
Glama

Get a monitor

get_monitor
Read-onlyIdempotent

Retrieve a monitor's full configuration and current state by ID before updating it, since updates replace the stored configuration entirely.

Instructions

Read one monitor's full configuration and current state. It has type, target, interval_seconds, timeout_seconds, regions, config, status, is_active, confirmation_threshold, channel_ids (empty means every working channel is alerted), tags, badge_enabled, last_checked_at, next_run_at, and for SSL monitors ssl_expires_at and ssl_cert_info (with lifetime_days and renewal_expected_by, the two-thirds point an ACME client usually renews by), and for HTTP monitors domain_expiry_enabled and domain_expiry: null when the option is off, else {domain, status, expires_at, days_left, checked_at} for the target's registrable domain, from the registry's RDAP data. status: PENDING (not looked up yet), OK (expires_at is the registration expiry), LAPSED (the registry lists the domain as expired, in redemption or pending delete), NO_EXPIRY_DATA (the registry publishes no expiry date), UNSUPPORTED_TLD (the registry publishes no RDAP data; nothing will be alerted), NOT_FOUND (the registry has no such domain), LOOKUP_FAILED (lookups keep failing: over a week since the last answer, or three failures in a row for a domain never looked up; expires_at is the last date seen, null if none), ON_HOLD (the registry lists the domain on hold, client or server hold, so it does not resolve; expires_at is the registry's date). Date alerts go out 30, 14 and 7 days before expires_at and once it has expired, from OK, LAPSED and ON_HOLD. ON_HOLD itself alerts, and NOT_FOUND does on a domain the registry listed before, once two lookups at least a day apart agree. Use it before update_monitor, since a config you send replaces the stored one whole. Not for finding a monitor (list_monitors), its uptime (get_uptime_summary) or why it fails (list_check_results).

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": {
      "monitor_id": "<monitor_id>"
    },
    "name": "get_monitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
monitor_idYesThe monitor's uuid from list_monitors. An id that is not a monitor of this organization, or a deleted one, is a 404.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
tagsNo
typeYesKnown values: HTTP, PING, SSL, TCP, DNS.
configYes
statusYesKnown values: PENDING, UP, DEGRADED, DOWN, PAUSED.
targetYes
regionsYes
user_idYes
is_activeYes
created_atYes
resumed_atYesWhen the monitor was last resumed after a pause; null if it was never resumed. A resume puts the monitor back to PENDING while last_checked_at keeps its pre-pause value.
updated_atYes
channel_idsNoBound notification channels. Empty means every working channel of the organization is alerted.
next_run_atYes
badge_enabledNo
domain_expiryNo
ssl_cert_infoNo
ssl_expires_atYes
last_checked_atYes
region_statusesYesPer-region latest status, sorted by region name. Built from ``region_snapshots``; ``job_id`` is dropped (internal dedup key) and malformed/partial snapshot rows are skipped rather than failing the read.
timeout_secondsYes
interval_secondsYes
change_alerts_enabledNo
domain_expiry_enabledNo
confirmation_thresholdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.9.4
    • addedOutput schema / properties / resumed_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "When the monitor was last resumed after a pause; null if it was never resumed. A resume puts the monitor back to PENDING while last_checked_at keeps its pre-pause value."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "user_id",
      -  "name",
      -  "type",
      -  "target",
      -  "interval_seconds",
      -  "timeout_seconds",
      -  "regions",
      -  "config",
      -  "status",
      -  "last_checked_at",
      -  "next_run_at",
      -  "confirmation_threshold",
      -  "ssl_expires_at",
      -  "is_active",
      -  "created_at",
      -  "updated_at",
      -  "region_statuses"
      -]New value: +[
      +  "id",
      +  "user_id",
      +  "name",
      +  "type",
      +  "target",
      +  "interval_seconds",
      +  "timeout_seconds",
      +  "regions",
      +  "config",
      +  "status",
      +  "last_checked_at",
      +  "resumed_at",
      +  "next_run_at",
      +  "confirmation_threshold",
      +  "ssl_expires_at",
      +  "is_active",
      +  "created_at",
      +  "updated_at",
      +  "region_statuses"
      +]
  2. Changed3 schema fields changedv1.6.0
    • addedOutput schema / properties / channel_ids / description
      Added value: +"Bound notification channels. Empty means every working channel of the organization is alerted."
    • removedOutput schema / properties / notification_cooldown_seconds
      Removed value: -{
      -  "type": "integer"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "user_id",
      -  "name",
      -  "type",
      -  "target",
      -  "interval_seconds",
      -  "timeout_seconds",
      -  "regions",
      -  "config",
      -  "status",
      -  "last_checked_at",
      -  "next_run_at",
      -  "confirmation_threshold",
      -  "notification_cooldown_seconds",
      -  "ssl_expires_at",
      -  "is_active",
      -  "created_at",
      -  "updated_at",
      -  "region_statuses"
      -]New value: +[
      +  "id",
      +  "user_id",
      +  "name",
      +  "type",
      +  "target",
      +  "interval_seconds",
      +  "timeout_seconds",
      +  "regions",
      +  "config",
      +  "status",
      +  "last_checked_at",
      +  "next_run_at",
      +  "confirmation_threshold",
      +  "ssl_expires_at",
      +  "is_active",
      +  "created_at",
      +  "updated_at",
      +  "region_statuses"
      +]
  3. Changed1 schema field changedv1.4.2
    • changedOutput schema / properties / domain_expiry / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "checked_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Last lookup attempt; null before the first one."
      -      },
      -      "days_left": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Whole days until expires_at, negative once passed, computed from expires_at whatever the status; null without a date."
      -      },
      -      "domain": {
      -        "description": "Registrable domain the expiry belongs to (A-label), e.g. example.com.",
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Registration expiry date from the registry; kept from the last answer when a lookup fails."
      -      },
      -      "status": {
      -        "description": "PENDING: not looked up yet. OK: the registry gave an expiry date. LAPSED: the registry lists the domain in its redemption or pending-delete period. NO_EXPIRY_DATA: the registry answers without an expiry date. UNSUPPORTED_TLD: the registry publishes no RDAP data. NOT_FOUND: the registry has no such domain. LOOKUP_FAILED: lookups keep failing (over a week since the last answer, or three failures in a row for a domain never looked up); expires_at is the last date seen, null if none. Only OK and LAPSED alert. Known values: PENDING, OK, LAPSED, NO_EXPIRY_DATA, UNSUPPORTED_TLD, NOT_FOUND, LOOKUP_FAILED.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status",
      -      "expires_at",
      -      "days_left",
      -      "checked_at"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "checked_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Last lookup attempt; null before the first one."
      +      },
      +      "days_left": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Whole days until expires_at, negative once passed, computed from expires_at whatever the status; null without a date."
      +      },
      +      "domain": {
      +        "description": "Registrable domain the expiry belongs to (A-label), e.g. example.com.",
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Registration expiry date from the registry; kept from the last answer when a lookup fails."
      +      },
      +      "status": {
      +        "description": "PENDING: not looked up yet. OK: the registry gave an expiry date. LAPSED: the registry lists the domain in its redemption or pending-delete period. NO_EXPIRY_DATA: the registry answers without an expiry date. UNSUPPORTED_TLD: the registry publishes no RDAP data. NOT_FOUND: the registry has no such domain. LOOKUP_FAILED: lookups keep failing (over a week since the last answer, or three failures in a row for a domain never looked up); expires_at is the last date seen, null if none. ON_HOLD: the registry lists the domain on hold (client or server hold), so it does not resolve; expires_at is the registry's date. Date alerts (30, 14 and 7 days before expires_at, then expired) come from OK, LAPSED and ON_HOLD. ON_HOLD itself alerts, and NOT_FOUND does on a domain the registry listed before, once two lookups at least a day apart agree. Known values: PENDING, OK, LAPSED, NO_EXPIRY_DATA, UNSUPPORTED_TLD, NOT_FOUND, LOOKUP_FAILED, ON_HOLD.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "domain",
      +      "status",
      +      "expires_at",
      +      "days_left",
      +      "checked_at"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed4 schema fields changedv1.3.0
    • addedOutput schema / properties / change_alerts_enabled
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / domain_expiry
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "checked_at": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Last lookup attempt; null before the first one."
      +        },
      +        "days_left": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Whole days until expires_at, negative once passed, computed from expires_at whatever the status; null without a date."
      +        },
      +        "domain": {
      +          "description": "Registrable domain the expiry belongs to (A-label), e.g. example.com.",
      +          "type": "string"
      +        },
      +        "expires_at": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Registration expiry date from the registry; kept from the last answer when a lookup fails."
      +        },
      +        "status": {
      +          "description": "PENDING: not looked up yet. OK: the registry gave an expiry date. LAPSED: the registry lists the domain in its redemption or pending-delete period. NO_EXPIRY_DATA: the registry answers without an expiry date. UNSUPPORTED_TLD: the registry publishes no RDAP data. NOT_FOUND: the registry has no such domain. LOOKUP_FAILED: lookups keep failing (over a week since the last answer, or three failures in a row for a domain never looked up); expires_at is the last date seen, null if none. Only OK and LAPSED alert. Known values: PENDING, OK, LAPSED, NO_EXPIRY_DATA, UNSUPPORTED_TLD, NOT_FOUND, LOOKUP_FAILED.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "domain",
      +        "status",
      +        "expires_at",
      +        "days_left",
      +        "checked_at"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / domain_expiry_enabled
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / ssl_cert_info / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "issuer": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "not_after": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "not_before": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "subject": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "valid": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "chain_length": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "fingerprint_sha256": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "issuer": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "lifetime_days": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Certificate validity (not_after minus not_before) in days, 2 decimals.\n\nNull when either timestamp is missing, unparsable or offset-less."
      +      },
      +      "not_after": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "not_before": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "renewal_expected_by": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "When a renewal is expected (two thirds of the lifetime).\n\nSet only for short-lived certificates; null for long-lived ones or\nwhen the lifetime is unknown."
      +      },
      +      "sans": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "sans_count": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "serial": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "subject": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "valid": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "lifetime_days",
      +      "renewal_expected_by"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Changed2 schema fields changedv0.6.1
    • addedInput schema / properties / monitor_id / description
      Added value: +"The monitor's uuid from list_monitors. An id that is not a monitor of this organization, or a deleted one, is a 404."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "badge_enabled": {
      +      "type": "boolean"
      +    },
      +    "channel_ids": {
      +      "items": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "config": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "confirmation_threshold": {
      +      "type": "integer"
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "interval_seconds": {
      +      "type": "integer"
      +    },
      +    "is_active": {
      +      "type": "boolean"
      +    },
      +    "last_checked_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "next_run_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "notification_cooldown_seconds": {
      +      "type": "integer"
      +    },
      +    "region_statuses": {
      +      "description": "Per-region latest status, sorted by region name.\n\nBuilt from ``region_snapshots``; ``job_id`` is dropped (internal\ndedup key) and malformed/partial snapshot rows are skipped rather\nthan failing the read.",
      +      "items": {
      +        "properties": {
      +          "checked_at": {
      +            "type": "string"
      +          },
      +          "display_name": {
      +            "type": "string"
      +          },
      +          "region": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "Known values: UP, DEGRADED, DOWN, ERROR.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "region",
      +          "status",
      +          "checked_at",
      +          "display_name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "regions": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "ssl_cert_info": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "issuer": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "not_after": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "not_before": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "subject": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "valid": {
      +              "anyOf": [
      +                {
      +                  "type": "boolean"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "ssl_expires_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "status": {
      +      "description": "Known values: PENDING, UP, DEGRADED, DOWN, PAUSED.",
      +      "type": "string"
      +    },
      +    "tags": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "target": {
      +      "type": "string"
      +    },
      +    "timeout_seconds": {
      +      "type": "integer"
      +    },
      +    "type": {
      +      "description": "Known values: HTTP, PING, SSL, TCP, DNS.",
      +      "type": "string"
      +    },
      +    "updated_at": {
      +      "type": "string"
      +    },
      +    "user_id": {
      +      "format": "uuid",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "user_id",
      +    "name",
      +    "type",
      +    "target",
      +    "interval_seconds",
      +    "timeout_seconds",
      +    "regions",
      +    "config",
      +    "status",
      +    "last_checked_at",
      +    "next_run_at",
      +    "confirmation_threshold",
      +    "notification_cooldown_seconds",
      +    "ssl_expires_at",
      +    "is_active",
      +    "created_at",
      +    "updated_at",
      +    "region_statuses"
      +  ],
      +  "type": "object"
      +}
  6. First observedv0.5.4

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already establish read-only, idempotent, non-destructive behavior, but the description adds substantial context: channel_ids emptiness means every working channel is alerted, the domain-expiry status meanings, alert timing, and the config-replacement caveat for update_monitor. This goes well beyond what the annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the description then runs through every returned field and a long domain-expiry status taxonomy. Because an output schema exists, much of this duplicates structured data and makes the definition far longer than needed for a single-parameter read tool.

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?

The definition is complete for the tool's complexity: it covers the read purpose, the update_monitor caveat, sibling alternatives, status semantics, and alerting behavior. Nothing needed to invoke or interpret the tool is missing.

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?

There is only one parameter, monitor_id, and the schema already documents it fully, including the uuid format and the 404 condition. The description adds no further meaning about the parameter beyond referring to "one monitor."

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 opens with a specific verb and resource: "Read one monitor's full configuration and current state." It clearly distinguishes this from list_monitors, get_uptime_summary, and list_check_results.

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 explicitly says to use this before update_monitor because the config replaces the stored one whole, and it names the alternative tools for finding a monitor, checking uptime, and diagnosing failures. This gives clear when-to-use and when-not-to-use guidance.

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