Skip to main content
Glama

Set up a monitor

setup_monitor
DestructiveIdempotent

Create or update ONE heartbeat, job, or check monitor from a human description, by stable key. Accepts human schedules like 'every 30 minutes', applies presets, checks plan limits, and returns the ping URL. Prefer this over create_monitors unless you already have exact API-shaped monitor objects or need to create many at once. Over the plan's monitor limit, the monitor is saved disabled and the response adds monitor_quota; tell the human.

Input Schema

NameRequiredDescriptionDefault
keyYesStable monitor key used for idempotent updates.
urlNoPublic URL, or host:port for the port preset.
bodyNoHTTP request body for a check.
tagsNoAdditional tags; via:mcp is always added.
typeYesMonitor type.
notifyNoNotification destinations or notification-list keys.
presetNoBuild a TCP port check.
headersNoHTTP request headers for a check.
scheduleNoCron expression or interval such as 'every 30 minutes'.
timezoneNoIANA timezone for cron schedules, e.g. America/Los_Angeles. Defaults to the account's timezone (see get_setup_context). Only accepted for job and heartbeat monitors.
assertionsNoCheck assertions such as 'response.code = 200'.
grace_secondsNoAdditional seconds allowed for expected runs, completions, or heartbeats before schedule alerts. Also extends maximum-duration limits for jobs. Does not delay explicit fail events. Only accepted for job and heartbeat monitors; omit for checks.
request_methodNoHTTP verb the check sends to the URL, such as GET or POST.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing idempotent-by-key update semantics, plan-limit checks, and the concrete over-quota behavior (monitor saved disabled, response gains monitor_quota, tell the human) — none of which the readOnly/openWorld/idempotent/destructive hints convey. It does not explain what happens to existing monitor fields during an update (the destructiveHint concern) or whether omitted parameters are cleared, which is the main remaining behavioral gap.

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

Conciseness5/5

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

Front-loads what the tool does, then the sibling routing rule, then the quota edge case. Every sentence carries actionable information; nothing is repeated from the schema or the title.

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 13-parameter tool with nested conditional schema and no output schema, the description covers the key behaviors an agent needs: singular scope, key-based idempotency, human-friendly schedules, and the over-quota response field. Missing is update-mode detail — whether this replaces or merges existing monitor configuration — which matters given destructiveHint=true.

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 description coverage is 100%, so all 13 parameters are already documented, including the conditional type/preset constraints. The description adds framing ('human schedules like every 30 minutes', 'applies presets') but no parameter-level detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Create or update ONE heartbeat, job, or check monitor'), the input form ('from a human description'), the addressing mechanism ('by stable key'), and the return ('ping URL'). It also explicitly scopes to a single monitor, which separates it from the bulk sibling create_monitors.

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?

Gives an explicit routing rule: prefer this over create_monitors unless you already have exact API-shaped monitor objects or need to create many at once. That names the alternative and the two conditions that select it, leaving nothing to inference.

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