Skip to main content
Glama
duksh

PeerGlass

by duksh

peerglass_shutdown_detect

Read-onlyIdempotent

Detect internet shutdowns at the country level by comparing current BGP prefix counts against a stored baseline to classify severity from normal to full shutdown.

Instructions

Detect internet shutdowns at the country level by comparing current BGP prefix counts against a stored baseline.

On the first call for a country the baseline is established. Subsequent calls measure how many prefixes have been withdrawn and classify severity: • NORMAL < 5% withdrawn • DEGRADED 5–20% withdrawn • PARTIAL_SHUTDOWN 20–80% withdrawn • FULL_SHUTDOWN > 80% withdrawn

Args: params (ShutdownDetectInput): - country_code (str): ISO 3166-1 alpha-2 code e.g. 'SY', 'IR', 'MM' - response_format (str): 'markdown' (default) or 'json'

Returns: str: Severity level, withdrawn percentage, and sampled ASN prefix counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/duksh/peerglass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server