Skip to main content
Glama

One site: its last 7 days (as in the weekly brief), open incidents, domain and TLS expiry

sites_by_slug
Read-onlyIdempotent

Wraps GET /api/sites/{slug}. One site: its last 7 days (as in the weekly brief), open incidents, domain and TLS expiry. Call this to answer questions about one site: how it did this week, what's wrong with it now, and when its domain or certificate runs out.

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": {
      "slug": "<slug>"
    },
    "name": "sites_by_slug"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYessite slug, as in /api/sites

Output Schema

NameRequiredDescriptionDefault
dataNo
next_stepsNocalls that usually come next, each naming its tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed34 schema fields changed
    • changedOutput schema / properties / data / properties / domain / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "daysLeft": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "expiresAt": {
      -        "anyOf": [
      -          {
      -            "description": "ISO 8601, UTC (…Z)",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "registrar": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "daysLeft": {
      +        "description": "days until then",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "expiresAt": {
      +        "description": "when its registration ends (ISO 8601, UTC); null when there's none",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "the registered domain",
      +        "type": "string"
      +      },
      +      "registrar": {
      +        "description": "who it's registered with",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / data / properties / domain / description
      Added value: +"its domain's registration, from RDAP; null when not looked up"
    • addedOutput schema / properties / data / properties / name / description
      Added value: +"the site's name"
    • addedOutput schema / properties / data / properties / openIncidents / description
      Added value: +"its incidents open now"
    • addedOutput schema / properties / data / properties / openIncidents / items / description
      Added value: +"A problem the monitor found, open or resolved"
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / cause / description
      Added value: +"what the check saw, in our fixed words (never the site's text)"
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / details / description
      Added value: +"the kind's own facts: counts, before and after values, the page (`page`), how it ended (`resolution`)"
    • changedOutput schema / properties / data / properties / openIncidents / items / properties / dismissed / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "at": {
      -        "description": "ISO 8601, UTC (…Z)",
      -        "type": "string"
      -      },
      -      "by": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "at": {
      +        "description": "when (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "by": {
      +        "description": "who dismissed it (a short name)",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / domain / description
      Added value: +"the domain, for domain incidents (expiry, DNS, the registrar's flags)"
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / id / description
      Added value: +"the incident's id, for /api/incidents/{id} and its writes"
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / kind / description
      Added value: +"what kind of problem: site_down, slow, page_broken, broken_links, … (label says it in words)"
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / label / description
      Added value: +"the kind in words, as the dashboard says it"
    • changedOutput schema / properties / data / properties / openIncidents / items / properties / likelyCause / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "clues": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "likely": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "clues": {
      +        "description": "what points there: errors, other sites, where it was seen, pushes and changes just before",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "likely": {
      +        "description": "the likely cause in a sentence; null when the rules found none",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "missing": {
      +        "description": "why there's none: its checks were purged (they're kept RETENTION_DAYS) before a diagnosis was saved",
      +        "enum": [
      +          "checks_expired"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / data / properties / openIncidents / items / properties / likelyCause / description
      Previous value: -"open outages and slowdowns only: the monitor's rules, as in the alert"New value: +"outages, slowdowns and broken pages only: the monitor's rules, as in the alert; a resolved one's as saved when it ended"
    • removedOutput schema / properties / data / properties / openIncidents / items / properties / resolvedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / resolvedAt / description
      Added value: +"when it ended (ISO 8601, UTC); null while it's open"
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / resolvedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data / properties / openIncidents / items / properties / severity / description
      Added value: +"down: an outage, alerted at once; warning: something to fix"
    • changedOutput schema / properties / data / properties / openIncidents / items / properties / site / description
      Previous value: -"site slug"New value: +"the site's slug; null for a domain's or project's incident"
    • changedOutput schema / properties / data / properties / openIncidents / items / properties / startedAt / description
      Previous value: -"ISO 8601, UTC (…Z)"New value: +"when it began (ISO 8601, UTC)"
    • changedOutput schema / properties / data / properties / openIncidents / items / properties / url / description
      Previous value: -"the page or file it's about"New value: +"the page or file it's about; null when it's about the whole site or a domain"
    • addedOutput schema / properties / data / properties / paused / description
      Added value: +"checks are paused"
    • addedOutput schema / properties / data / properties / project / description
      Added value: +"its project's slug"
    • addedOutput schema / properties / data / properties / public / description
      Added value: +"it has a public status page"
    • addedOutput schema / properties / data / properties / slug / description
      Added value: +"the site's slug: its id in every /api/sites/{slug} route"
    • addedOutput schema / properties / data / properties / status / description
      Added value: +"its status now: \"up\", \"down\", \"degraded\" (up, with warnings open) or \"unknown\" (not checked yet)"
    • addedOutput schema / properties / data / properties / tls / description
      Added value: +"the homepage's TLS certificate"
    • addedOutput schema / properties / data / properties / tls / properties / daysLeft / description
      Added value: +"days until then"
    • removedOutput schema / properties / data / properties / tls / properties / expiresAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / tls / properties / expiresAt / description
      Added value: +"when the certificate ends (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / properties / tls / properties / expiresAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data / properties / tls / properties / issuer / description
      Added value: +"who issued it"
    • addedOutput schema / properties / data / properties / url / description
      Added value: +"the site's address (its homepage)"
    • changedOutput schema / properties / data / properties / week / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "brokenLinkPages": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "dismissed": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "from": {
      -        "description": "ISO 8601, UTC (…Z)",
      -        "type": "string"
      -      },
      -      "htmlBytes": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "now": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "weekAgo": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "longestOutageMs": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "outages": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "pageErrors": {
      -        "description": "new errors from the site's own code right now",
      -        "type": "boolean"
      -      },
      -      "readers": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "clsP75": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "inpP75": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "lcpP75": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "periodEnd": {
      -                "type": "string"
      -              },
      -              "ttfbP75": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "real readers on phones (Chrome UX Report, 28 days); null when Chrome has too little data. Times in ms"
      -      },
      -      "to": {
      -        "description": "ISO 8601, UTC (…Z)",
      -        "type": "string"
      -      },
      -      "traffic": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "cacheHits": {
      -                "type": "number"
      -              },
      -              "pages": {
      -                "type": "number"
      -              },
      -              "visits": {
      -                "type": "number"
      -              },
      -              "weekBefore": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "typicalMs": {
      -        "description": "median homepage response time (time to first byte); for a site checked from both locations, of their average, each location counted once",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "uptime": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "ok": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "percent": {
      -            "description": "ok / total × 100, two decimals; null with no checks",
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "total": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "warnings": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "brokenLinkPages": {
      +        "description": "pages with broken links now",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "dismissed": {
      +        "description": "of the week's incidents, how many the team dismissed",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "from": {
      +        "description": "the week's start (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "htmlBytes": {
      +        "additionalProperties": {},
      +        "description": "the homepage's weight, week over week",
      +        "properties": {
      +          "now": {
      +            "description": "the homepage's HTML today, bytes unpacked",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "weekAgo": {
      +            "description": "a week ago",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "longestOutageMs": {
      +        "description": "the longest of them, ms; null with none",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "missing": {
      +        "additionalProperties": {},
      +        "description": "why a section is null: traffic; empty when nothing is missing",
      +        "properties": {
      +          "traffic": {
      +            "const": "no_traffic",
      +            "description": "set when traffic is null: no Cloudflare traffic: the team hasn't connected Cloudflare for this site, or its first hours aren't in yet",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "outages": {
      +        "description": "outages that began in the week",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "pageErrors": {
      +        "description": "new errors from the site's own code right now",
      +        "type": "boolean"
      +      },
      +      "readers": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "ageDays": {
      +                "description": "days since that window ended",
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "clsP75": {
      +                "description": "Cumulative Layout Shift, 75th percentile, unitless (good ≤ 0.1)",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "inpP75": {
      +                "description": "Interaction to Next Paint, 75th percentile, ms (good ≤ 200)",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "lcpP75": {
      +                "description": "Largest Contentful Paint, 75th percentile, ms (good ≤ 2500)",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "periodEnd": {
      +                "description": "the last day of Chrome's 28-day window (YYYY-MM-DD)",
      +                "type": "string"
      +              },
      +              "stale": {
      +                "description": "the window ended more than 45 days ago: Chrome stopped reporting the site, and these numbers describe it as it was then",
      +                "type": "boolean"
      +              },
      +              "ttfbP75": {
      +                "description": "time to first byte, 75th percentile, ms (good ≤ 800)",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Real readers on phones (Chrome UX Report, 28 days); null when Chrome has too little data. Times in ms"
      +      },
      +      "to": {
      +        "description": "the week's end (now) (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "traffic": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "cacheHits": {
      +                "description": "requests Cloudflare answered from its cache",
      +                "type": "number"
      +              },
      +              "pages": {
      +                "description": "of them, HTML pages",
      +                "type": "number"
      +              },
      +              "visits": {
      +                "description": "requests Cloudflare served in the week: every request, crawlers and agents included (Cloudflare's Free plan doesn't separate them)",
      +                "type": "number"
      +              },
      +              "weekBefore": {
      +                "description": "the same for the week before; null without a full week",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "from the team's Cloudflare connection; null without one (missing.traffic says why)"
      +      },
      +      "typicalMs": {
      +        "description": "median homepage response time (time to first byte); for a site checked from both locations, of their average, each location counted once",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "uptime": {
      +        "additionalProperties": {},
      +        "description": "Checks that passed, of those made, in a period",
      +        "properties": {
      +          "ok": {
      +            "description": "checks that passed",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "percent": {
      +            "description": "ok / total × 100, two decimals; null with no checks",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "total": {
      +            "description": "checks made",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "warnings": {
      +        "description": "warnings that began in the week",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. 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 adds the aggregation window ('last 7 days, as in the weekly brief') and the upstream endpoint, which is genuinely useful behavioral context. It says nothing about payload size, latency, or what happens for an unknown slug, and the content sentence largely repeats the title verbatim, so the added value is modest.

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?

Three short sentences, front-loaded with the endpoint and payload contents, then the call condition. The main waste is that the payload enumeration ('last 7 days ... open incidents, domain and TLS expiry') is duplicated word-for-word in the title and again restated in the third sentence as 'how it did this week / what's wrong with it now / when its domain or certificate runs out'.

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 one required parameter, full schema coverage, an output schema handling return values, and rich annotations, the remaining burden on the description is small and it mostly meets it: endpoint, payload scope, time window, and use case are all stated. The only shortfall is the absence of routing guidance versus the many per-site sub-resource siblings, which a caller with a narrower question would need.

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 a single required parameter whose schema description is 100% covered ('site slug, as in /api/sites'), so the structured data already carries the meaning. The description adds no format hints, no guidance on obtaining the slug from the sites listing, and no constraints on case or encoding. Baseline 3 is appropriate when the schema does the work.

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 a concrete verb+resource ('Wraps GET /api/sites/{slug}') and enumerates exactly what the single-site payload contains: last 7 days of performance, open incidents, domain and TLS expiry. That is specific enough to distinguish a one-site summary from a list or sub-resource endpoint. It stops short of naming a sibling (e.g. sites_by_slug_insights or sites_by_slug_events) as the thing to use for deeper drill-down, so the differentiation is implied rather than explicit.

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?

'Call this to answer questions about one site: how it did this week, what's wrong with it now, and when its domain or certificate runs out' gives an explicit when-to-use condition tied to the three question types the payload answers. There is no when-not clause and no named alternative for narrower questions (events, journeys, scans), leaving the agent to infer routing for those cases.

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