Skip to main content
Glama

Create several monitors

bulk_create_monitors

Create 1 to 100 uptime monitors in one all-or-nothing call. Check plan limits first so an invalid item or quota overage rejects the whole batch.

Instructions

Create 1 to 100 monitors in one call, all or nothing; for a single monitor use create_monitor. Requires a key with the write scope. An invalid item, or a batch that would exceed the plan, rejects the whole call and creates nothing: call get_plan_usage first to check the batch fits. Errors name the failing item. A field that fails validation is named by its path, such as monitors.3.target (index 3 is the fourth item; all such errors are reported at once). Any other item error keeps the status create_monitor would give (403 when its interval or regions break the plan or name an unknown region, 404 for an unknown channel id, 422 for its config or its type's region rules) and its reason starts with monitors[3] (""): — only the first such item is reported. Read the index only from that leading monitors[N] (the pattern ^monitors[(\d+)] after any lead-in such as "Forbidden: " or "Invalid request: "), never from the name, which may itself contain quotes or brackets. A plan-limit 403 without that prefix is about the batch as a whole: together the items would exceed the plan's monitor count or its quota of monitors below 60 seconds. Fix the item or shrink the batch and send the whole call again. Returns monitors: one list_monitors row per created monitor, in request order. The example is a port-list TCP monitor, which takes exactly one region and an interval of at least 300 seconds. Example: {"monitors": [{"name": "db.example.com exposed ports", "type": "TCP", "target": "db.example.com", "interval_seconds": 3600, "timeout_seconds": 10, "regions": ["eu-central"], "config": {"ports": [5432, 6379, 27017], "expected_state": "closed"}}]}

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": {
      "monitors": "<monitors>"
    },
    "name": "bulk_create_monitors"
  }
}

Input Schema

NameRequiredDescriptionDefault
monitorsYes1 to 100 monitors, each taking the same fields and rules as create_monitor's arguments. Items with is_active false are created paused and still count toward the plan. Unless the user names regions, give each item every code in limits.allowed_regions, up to the plan's max_regions; tell the user the intervals you chose.

Output Schema

NameRequiredDescriptionDefault
monitorsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • removedInput schema / properties / monitors / items / properties / notification_cooldown_seconds
      Removed value: -{
      -  "maximum": 86400,
      -  "minimum": 60,
      -  "type": "integer"
      -}
  2. Changed2 schema fields changedv1.3.0
    • addedInput schema / properties / monitors / items / properties / change_alerts_enabled
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / monitors / items / properties / domain_expiry_enabled
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv0.7.0
    • changedInput schema / properties / monitors / description
      Previous value: -"1 to 100 monitors, each taking the same fields and rules as create_monitor's arguments. Items with is_active false are created paused and still count toward the plan."New value: +"1 to 100 monitors, each taking the same fields and rules as create_monitor's arguments. Items with is_active false are created paused and still count toward the plan. Unless the user names regions, give each item every code in limits.allowed_regions, up to the plan's max_regions; tell the user the intervals you chose."
  4. Changed2 schema fields changedv0.6.1
    • changedInput schema / properties / monitors / description
      Previous value: -"Monitors to create, each shaped like a single create request."New value: +"1 to 100 monitors, each taking the same fields and rules as create_monitor's arguments. Items with is_active false are created paused and still count toward the plan."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "monitors": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          "interval_seconds": {
      +            "type": "integer"
      +          },
      +          "is_active": {
      +            "type": "boolean"
      +          },
      +          "last_checked_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "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"
      +          },
      +          "type": {
      +            "description": "Known values: HTTP, PING, SSL, TCP, DNS.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "type",
      +          "target",
      +          "status",
      +          "is_active",
      +          "interval_seconds",
      +          "ssl_expires_at",
      +          "last_checked_at"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "monitors"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.5.4

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish that this is a non-read-only, non-destructive, non-idempotent write, but the description adds the critical behavioral traits: atomic all-or-nothing creation, key scope requirement, plan-limit rejection, per-item validation and plan/region/channel error behavior, and return ordering. It does not contradict any annotation.

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 description is front-loaded with the core action, atomicity, and alternative tool, then proceeds into error and example details. It is long and occasionally dense, especially the error-handling paragraph, but nearly every sentence supports correct invocation or retry behavior for a complex bulk operation.

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 bulk-creation tool with one complex array parameter, atomic semantics, and multiple error classes, the description is complete enough to invoke and recover from failures. An output schema exists, and the description still usefully states that the response returns monitors as list_monitors rows in request order.

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

Parameters5/5

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

Schema description coverage is already 100%, but the description adds substantial meaning beyond the schema: how to interpret validation error paths like monitors.3.target, how to read only the leading monitors[N] prefix rather than the item name, what a bare plan-limit 403 means for the batch, and how regions and intervals should be chosen when the user does not specify them.

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 first sentence states a specific verb and resource: create 1 to 100 monitors in one call, with all-or-nothing semantics. It explicitly distinguishes this from create_monitor for the single-monitor case, so the agent can route correctly without inspecting sibling schemas.

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?

The description gives explicit usage guidance: use create_monitor for a single monitor, call get_plan_usage first to check whether the batch fits the plan, and resend the whole call after fixing a failing item or shrinking the batch. It also explains that only the first item error of certain kinds is reported, which is important when deciding how to retry.

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