Skip to main content
Glama

Get a monitor's response time by region

get_response_time_by_region
Read-onlyIdempotent

Chart one monitor's average response time over time, one series per region, to see where it is slow and since when. Returns monitor_id, window, bucket_seconds, regions and slowdown.

Instructions

Chart one monitor's average response time over time, one series per region, to see where it is slow and since when. Returns monitor_id, window, bucket_seconds, regions and slowdown. Each region has region, display_name, points (oldest first, the same buckets in every series: bucket_start, avg_response_time_ms, null when the bucket had no successful check, and sample_count) and percentiles over the whole window (p50_response_time_ms, p95_response_time_ms, p99_response_time_ms and sample_count; interpolated from histograms, so usually within about 5% of the exact value and 15% or more on a sparse tail; p95 is null under 20 checks, p99 under 100). Every configured region has a series, even an empty one, followed by removed regions that still had checks; points start at the window's start or at the monitor's creation. slowdown compares each configured region's last window_minutes with its own median of the past week, whatever window you asked for, unless that window is longer than the plan's history (below): scope is none, one_region, some_regions or all_regions, and regions lists region, display_name, state (slow, elevated, normal or unknown), recent_p50_response_time_ms and baseline_p50_response_time_ms. slowdown is null when fewer than two regions can be compared. A window longer than the plan's history (get_plan_usage shows history_retention_days) returns points without data, null percentiles and slowdown null. For uptime use get_uptime_summary; for single checks use list_check_results. With from (and optionally to) the series covers those UTC days instead: window is custom, the points are hourly for one day, six-hourly for two to seven days and daily beyond, and slowdown is null; a range entirely older than the plan's history has points without data and null percentiles.

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_response_time_by_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast UTC date of a calendar range, YYYY-MM-DD, inclusive; needs from. Without it, or after today, the range ends today.
fromNoFirst UTC date of a calendar range, YYYY-MM-DD, inclusive. The range is cut to the plan's history; a range entirely older than it returns no data.
windowNo24h (the default; up to 24 hourly buckets), 7d (up to 28 six-hourly buckets), 30d, 90d, 180d or 365d (one bucket per day). A window longer than the plan's history returns no data; get_plan_usage shows the plan's history days. Not together with from or to.
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
windowYes
regionsYes
slowdownNo
monitor_idYes
bucket_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.9.1
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "First UTC date of a calendar range, YYYY-MM-DD, inclusive. The range is cut to the plan's history; a range entirely older than it returns no data.",
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Last UTC date of a calendar range, YYYY-MM-DD, inclusive; needs from. Without it, or after today, the range ends today.",
      +  "format": "date",
      +  "type": "string"
      +}
    • changedInput schema / properties / window / description
      Previous value: -"24h (the default; up to 24 hourly buckets), 7d (up to 28 six-hourly buckets), 30d, 90d, 180d or 365d (one bucket per day). A window longer than the plan's history returns no data; get_plan_usage shows the plan's history days."New value: +"24h (the default; up to 24 hourly buckets), 7d (up to 28 six-hourly buckets), 30d, 90d, 180d or 365d (one bucket per day). A window longer than the plan's history returns no data; get_plan_usage shows the plan's history days. Not together with from or to."
  2. Changed2 schema fields changedv1.8.0
    • changedInput schema / properties / window / description
      Previous value: -"24h (the default; up to 24 hourly buckets), 7d (up to 28 six-hourly buckets) or 30d (up to 30 daily buckets)."New value: +"24h (the default; up to 24 hourly buckets), 7d (up to 28 six-hourly buckets), 30d, 90d, 180d or 365d (one bucket per day). A window longer than the plan's history returns no data; get_plan_usage shows the plan's history days."
    • changedInput schema / properties / window / enum
      Previous value: -[
      -  "24h",
      -  "7d",
      -  "30d"
      -]New value: +[
      +  "24h",
      +  "7d",
      +  "30d",
      +  "90d",
      +  "180d",
      +  "365d"
      +]
  3. Changed3 schema fields changedv1.4.0
    • addedOutput schema / properties / regions / items / properties / percentiles
      Added value: +{
      +  "properties": {
      +    "p50_response_time_ms": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "p95_response_time_ms": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "p99_response_time_ms": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "sample_count": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "p50_response_time_ms",
      +    "p95_response_time_ms",
      +    "p99_response_time_ms",
      +    "sample_count"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / regions / items / required
      Previous value: -[
      -  "region",
      -  "display_name",
      -  "points"
      -]New value: +[
      +  "region",
      +  "display_name",
      +  "points",
      +  "percentiles"
      +]
    • addedOutput schema / properties / slowdown
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "regions": {
      +          "items": {
      +            "properties": {
      +              "baseline_p50_response_time_ms": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "display_name": {
      +                "type": "string"
      +              },
      +              "recent_p50_response_time_ms": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "region": {
      +                "type": "string"
      +              },
      +              "state": {
      +                "description": "Known values: slow, elevated, normal, unknown.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "region",
      +              "display_name",
      +              "state",
      +              "recent_p50_response_time_ms",
      +              "baseline_p50_response_time_ms"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "scope": {
      +          "description": "Known values: none, one_region, some_regions, all_regions.",
      +          "type": "string"
      +        },
      +        "window_minutes": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "scope",
      +        "window_minutes",
      +        "regions"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  4. Changed3 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."
    • addedInput schema / properties / window / description
      Added value: +"24h (the default; up to 24 hourly buckets), 7d (up to 28 six-hourly buckets) or 30d (up to 30 daily buckets)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bucket_seconds": {
      +      "type": "integer"
      +    },
      +    "monitor_id": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "regions": {
      +      "items": {
      +        "properties": {
      +          "display_name": {
      +            "type": "string"
      +          },
      +          "points": {
      +            "items": {
      +              "properties": {
      +                "avg_response_time_ms": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "bucket_start": {
      +                  "type": "string"
      +                },
      +                "sample_count": {
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "bucket_start",
      +                "sample_count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "region": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "region",
      +          "display_name",
      +          "points"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "window": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "monitor_id",
      +    "window",
      +    "bucket_seconds",
      +    "regions"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.5.4

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses that percentiles are histogram-interpolated (~5% error, worse on sparse tails), that p95 is null under 20 checks and p99 under 100, that removed regions still appear, and that a window exceeding plan history returns empty points with null percentiles. These are exactly the non-obvious behaviors an agent cannot infer from structured fields.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is a single dense paragraph of deeply nested parentheticals that enumerates return-field names (region, display_name, points, bucket_start...) already covered by the output schema. A large share of sentences earn their place, yet the wall-of-text formatting and field enumeration add avoidable load.

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 tool with an output schema and four parameters, nothing an agent needs is missing: series alignment, empty-series behavior, slowdown states, custom-range granularity and retention truncation are all addressed. The only redundancy is explaining return fields that the output schema also declares.

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 already 100%, so the baseline is 3; the description earns more by explaining that from/to switches to hourly (1 day), six-hourly (2-7 days) or daily buckets, sets window to "custom", and forces slowdown to null. It does not restate the monitor_id 404 behavior or date formats, leaving those to the schema.

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?

"Chart one monitor's average response time over time, one series per region, to see where it is slow and since when" gives a specific verb, resource, output shape and intent. It is immediately distinguishable from get_uptime_summary and list_check_results, which the description names explicitly.

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 states when to use alternatives ("For uptime use get_uptime_summary; for single checks use list_check_results") and when to prefer the from/to mode over window. It also warns that window and from/to are mutually exclusive and points to get_plan_usage for retention limits.

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