Skip to main content
Glama

WatchFor

Get suggested alert thresholds

get_suggested_thresholds
Read-onlyIdempotent

Alert thresholds for a network-distance metric (one marked region_scoped: true in the monitor-type catalog: latency, packet loss, jitter) suggested from the monitor's own checks: per region it is checked from, the p95 over its history up to 7 days (window), the suggested warning and critical, which region the all-regions values come from (most locations) and which regions need a rule of their own. method spells out the metric's formula (slow operations: max(p95 × 1.5, p95 + 30 ms, p99 × 1.2) / max(p95 × 2.5, p95 + 80 ms, p99 × 2); packet loss moves in whole packet steps, see packets_per_check). Read-only: no rule is created or changed. ready=false until a region has enough checks; 400 for a metric that isn't region-scoped or isn't measured.

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

Input Schema

NameRequiredDescriptionDefault
metricNoA region-scoped metric of the monitor's type (e.g. response_time, game.query_rtt_ms) or a family: latency, packet_loss, jitter. Omitted = the type's first (game: latency).
monitor_idYesMonitor id (UUID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description still adds genuine behavior beyond them: the 7-day history window, per-region vs all-regions output shape, the ready=false readiness gate, and the 400 error conditions. The formula text for `method` is a return-value detail rather than invocation behavior, so the added value is solid but not exceptional.

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?

It is a single dense run-on paragraph mixing purpose, return shape, formula, and error behavior. It is front-loaded reasonably, but untangling it takes effort, and the backticked `window` and `method` tokens read like parameters when they are actually output fields, which adds confusion rather than value.

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?

With no output schema, the description has to carry the return shape and largely does: per-region p95, suggested warning/critical, provenance of all-regions values, regions needing their own rule, plus the `method` formula and readiness flag. Only the exact shape of the response object remains unstated, which is acceptable for this complexity.

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%, and the description largely restates what the schema already says about `metric` (specific metric or family; omitted defaults to the type's first). It introduces no new constraint on `monitor_id`. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the concrete operation — deriving suggested warning/critical alert thresholds for a region-scoped metric from the monitor's own check history — and confines itself to latency, packet loss, or jitter. It distinguishes itself from the create/update/delete alert-rule siblings by stating 'Read-only: no rule is created or changed', though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Use conditions are clear: the metric must be region-scoped and measured (otherwise 400), and results are gated by ready=false until enough checks exist. Omitting `metric` defaults to the type's first metric. What is only implied, not stated, is the workflow relationship — that this is the read step preceding create_alert_rule.

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.