Axiom MCP by usefulapi

v1.2.0
io.usefulapi/axiom Checked 1 day ago Published 12 hours ago

Run APL queries; read datasets, monitors and dashboards; add chart annotations in Axiom.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

axiom_list_datasets List datasets

List the datasets this token can read, with their edge deployment, retention and labels. Good first call to find dataset names and ids. Axiom API: GET /v2/datasets.

axiom_get_dataset Get dataset

Get one dataset: its name, kind, retention, edge deployment and labels. Axiom API: GET /v2/datasets/{dataset_id}.

ParameterTypeDescription
dataset_id *stringDataset id (from axiom_list_datasets).

axiom_list_dataset_fields List dataset fields

List the fields (columns) of one dataset with their types. Use it before writing an APL query. Axiom API: GET /v2/datasets/{dataset_id}/fields.

ParameterTypeDescription
dataset_id *stringDataset id (from axiom_list_datasets).

axiom_query Run APL query

Run an APL (Axiom Processing Language) query on this account's edge deployment and return the rows as a table. Example: ['app-logs'] | where status >= 500 | summarize count() by bin_auto(_time). Results over 150,000 characters are cut. Axiom API: POST /v1/query/_apl?format=tabular on the edge host.

ParameterTypeDescription
apl *stringAPL query text. Quote dataset names in brackets, for example ['app-logs'] | limit 20.
startTime *stringStart of the time range, RFC 3339 or relative such as now-1h.
endTimestringEnd of the time range (default now).

axiom_list_monitors List monitors

List the monitors (alerts) in this organization with their queries, thresholds and state. Axiom API: GET /v2/monitors.

axiom_get_monitor Get monitor

Get one monitor: its query, thresholds, schedule and notifiers. Axiom API: GET /v2/monitors/{id}.

ParameterTypeDescription
monitor_id *stringMonitor id (from axiom_list_monitors).

axiom_get_monitor_history Get monitor history

List the notifications sent or the runs of one monitor in a time range. Axiom API: GET /v2/monitors/{id}/history.

ParameterTypeDescription
endTime *stringEnd of the range, RFC 3339 (required by Axiom). Must not be before startTime.
monitor_id *stringMonitor id (from axiom_list_monitors).
startTime *stringStart of the range, RFC 3339 (required by Axiom).
kindstringItem kind to list (default notification).

axiom_list_dashboards List dashboards

List the dashboards in this organization. Axiom API: GET /v2/dashboards.

axiom_get_dashboard Get dashboard

Get one dashboard by its uid, including its charts and queries. Axiom API: GET /v2/dashboards/uid/{uid}.

ParameterTypeDescription
uid *stringDashboard uid (from axiom_list_dashboards).

axiom_list_saved_queries List saved queries

List the saved (starred) APL queries of this organization. Axiom API: GET /v2/apl-starred-queries.

axiom_list_annotations List annotations

List chart annotations (deployments, incidents and other marked events), optionally by dataset and time range. Axiom API: GET /v2/annotations.

ParameterTypeDescription
datasetsarrayOnly annotations on these dataset names.
endstringOnly events before this RFC 3339 time (needs start).
startstringOnly events after this RFC 3339 time (needs end; range up to 100 days).

axiom_create_annotation Create annotation

Mark an event (for example a production deployment) on the charts of the given datasets. Adds a new annotation each call; it does not change existing ones. Axiom API: POST /v2/annotations.

ParameterTypeDescription
datasets *arrayDataset names where the annotation appears on charts.
type *stringEvent type, for example production-deployment.
descriptionstringWhat the event is.
endTimestringEnd of the event, if it has a duration.
timestringWhen the event happened (default: now). Cannot be in the future.
titlestringShort title shown on the chart.
urlstringRelated link, for example a pull request.