Sematext MCP by usefulapi
v1.1.0Read Synthetics monitors and Logs; start monitor runs and search logs in Sematext.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sematext_list_apps List apps
List the apps (Logs, Synthetics, Monitoring, Events and others) in the Sematext account behind the API key, with their ids, names and types. Start here to find appId values. Sematext API: GET /users-web/api/v3/apps.
sematext_list_synthetics_monitors List Synthetics monitors
List the uptime and browser (Synthetics) monitors of one Synthetics app: name, type (HTTP or BROWSER), interval, enabled flag, status (PASSING or FAILING), locations and alert conditions. Sematext API: GET /synthetics-api/api/apps/<appId>/monitors.
| Parameter | Type | Description |
|---|---|---|
appId * | integer | Sematext app id (from sematext_list_apps). |
sematext_get_synthetics_monitor Get a Synthetics monitor
Get one Synthetics monitor of an app: its status, interval, locations, alert conditions, last failed result and average availability. Sematext API: GET /synthetics-api/api/apps/<appId>/monitors/<monitorId>.
| Parameter | Type | Description |
|---|---|---|
appId * | integer | Sematext app id (from sematext_list_apps). |
monitorId * | integer | Synthetics monitor id (from sematext_list_synthetics_monitors). |
sematext_run_synthetics_monitors Run Synthetics monitors now
Start an immediate check run of one or more Synthetics monitors from the chosen locations. Each run uses the vendor's check quota. Location ids: 1 N. Virginia, 2 Ireland, 3 Mumbai, 4 Singapore, 5 Sydney, 6 Frankfurt, 7 Sao Paulo, 8 N. California, 9 Montreal. Sematext API: POST /synthetics-api/api/v3/apps/<appId>/monitors/runs.
| Parameter | Type | Description |
|---|---|---|
appId * | integer | Sematext app id (from sematext_list_apps). |
runs * | array | One entry per monitor: { monitorId, locations }. |
sematext_search_logs Search logs (query string)
Search log events of one Logs app with a query string (Elasticsearch URI search syntax, for example 'status:500 AND host:web-01'). Returns the hits with their fields and timestamps. Pass the Logs App token in logsToken. Sematext API: GET logsene-search.sematext.com/<token>/_search?q=.
| Parameter | Type | Description |
|---|---|---|
logsToken * | string | Logs App token: the index name in the Logs app URL (shown in the Logs app settings in Sematext). It is a secret: send it only to this tool, and do not paste it into shared chats. Search results can in… |
q * | string | Query string, Elasticsearch URI search syntax. |
from | integer | Offset of the first log event (default 0). |
size | integer | Number of log events to return (1-100, default 10). |
sematext_search_logs_dsl Search logs (query DSL)
Search log events of one Logs app with an Elasticsearch/OpenSearch query DSL body. Use it for filters, ranges, sorting and aggregations (for example a count per status code). Pass the Logs App token in logsToken. Sematext API: POST logsene-search.sematext.com/<token>/_search.
| Parameter | Type | Description |
|---|---|---|
body * | object | Query DSL body, for example { query: { match: { level: 'error' } }, size: 10, aggs: { ... } }. |
logsToken * | string | Logs App token: the index name in the Logs app URL (shown in the Logs app settings in Sematext). It is a secret: send it only to this tool, and do not paste it into shared chats. Search results can in… |