NS1 Connect MCP by usefulapi

v1.27.5
io.usefulapi/ns1 Checked 5 hours ago Published 8 days ago

Read NS1 zones, records, monitors, data feeds and usage; create or update one DNS record.

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

ns1_list_zones List zones

List the DNS zones in the account: name, id, TTL/SOA settings, primary/secondary setup, linked zones and tags. If next_page is not null, call again with its after/offset to get more. GET /v1/zones.

ParameterTypeDescription
afterstringContinue after this item: pass next_page.after from the previous reply.
limitintegerMaximum items per page, 1-1000. Omit for NS1's default page size.
offsetintegerSkip this many items: pass next_page.offset from the previous reply.

ns1_get_zone Get zone

One zone with its settings and its record list (each record: domain, type, TTL, short answers, linked/tier info). Large zones are paged: if next_page is not null, call again with its after/offset to get the next records. TSIG secrets are redacted. GET /v1/zones/{zone}.

ParameterTypeDescription
zone *stringZone name, e.g. example.com.
afterstringContinue after this item: pass next_page.after from the previous reply.
limitintegerMaximum items per page, 1-1000. Omit for NS1's default page size.
offsetintegerSkip this many items: pass next_page.offset from the previous reply.

ns1_get_record Get record

One DNS record by zone, domain and type: TTL, answers (with per-answer metadata), filter chain (traffic steering), linked record and region settings. GET /v1/zones/{zone}/{domain}/{type}.

ParameterTypeDescription
domain *stringFull record name inside the zone, e.g. www.example.com (or the zone name itself for the apex).
type *stringRecord type, e.g. A, AAAA, CNAME, MX, TXT.
zone *stringZone name, e.g. example.com.

ns1_list_monitoring_jobs List monitoring jobs

List the account's NS1 monitoring jobs (health checks that feed traffic steering): id, name, type, regions, frequency, rules, current status, active flag and notify list id. Request header values and credentials are redacted. GET /v1/monitoring/jobs.

ns1_get_monitoring_job Get monitoring job

One monitoring job by id with its configuration, rules, regions and status. Header values and credentials are redacted. GET /v1/monitoring/jobs/{id}.

ParameterTypeDescription
job_id *stringMonitoring job id (from ns1_list_monitoring_jobs).

ns1_list_notify_lists List notifier lists

List the notifier lists that monitoring alerts are sent to: id, name and the notifier types and labels (email, Slack, PagerDuty, webhook). Notifier settings (webhook URLs, tokens, service keys, addresses) are redacted. GET /v1/lists.

ns1_list_data_sources List data sources

List the data sources (connections to third-party monitoring or custom push sources used for traffic steering): id, name, source type, status and their feeds. Connection settings and credentials are redacted. GET /v1/data/sources.

ns1_get_data_source Get data source

One data source by id with its feeds. Connection settings and credentials are redacted. GET /v1/data/sources/{id}.

ParameterTypeDescription
source_id *stringData source id (from ns1_list_data_sources).

ns1_list_data_feeds List data feeds of a source

List the feeds of one data source (each feed is one monitored item, e.g. one server's health) with id, name and settings. GET /v1/data/feeds/{source_id}.

ParameterTypeDescription
source_id *stringData source id.

ns1_get_data_feed Get data feed

One data feed of a source by id. GET /v1/data/feeds/{source_id}/{feed_id}.

ParameterTypeDescription
feed_id *stringData feed id.
source_id *stringData source id.

ns1_get_account_summary Get account summary

The account's subscription, resources and utilization (queries, records, filter chains, monitors, ... against the plan limits). GET /v1/account/summary.

ns1_get_usage_stats Get query usage statistics

DNS query counts for the whole account, one zone, or one record (give zone, or zone + domain + type). period is 1h, 24h or 30d; aggregate, expand, limit and after apply to the account and zone levels only (a record takes just period). If next_page is not null, call again with its after/limit. GET /v1/stats/usage[/{zone}[/{domain}/{type}]].

ParameterTypeDescription
afterstringContinue after this item: pass next_page.after from the previous reply.
aggregatebooleanSum the counts over the period.
domainstringFull record name inside the zone, e.g. www.example.com (or the zone name itself for the apex).
expandbooleanBreak the counts down further. Account and zone level only.
limitintegerMaximum items per page, 1-1000. Omit for NS1's default page size.
periodstringTime window: 1h, 24h or 30d. Omit for the API default.
typestringRecord type, e.g. A, AAAA, CNAME, MX, TXT.
zonestringZone name, e.g. example.com.

ns1_get_qps_stats Get queries per second

Current queries per second for the whole account, one zone, or one record (give zone, or zone + domain + type). GET /v1/stats/qps[/{zone}[/{domain}/{type}]].

ParameterTypeDescription
domainstringFull record name inside the zone, e.g. www.example.com (or the zone name itself for the apex).
typestringRecord type, e.g. A, AAAA, CNAME, MX, TXT.
zonestringZone name, e.g. example.com.

ns1_get_billing_records Get records usage (billing)

How many DNS records the account uses against its plan limit in the current billing cycle. GET /billing-usage/v1/records.

ns1_get_billing_queries Get query usage (billing)

Billable DNS query usage between two Unix timestamps. GET /billing-usage/v1/queries?from=&to=.

ParameterTypeDescription
from *integerStart, Unix seconds.
to *integerEnd, Unix seconds.

ns1_create_record Create DNS record

WRITE: creates ONE new DNS record and CHANGES LIVE DNS for that name as soon as NS1 serves it; a wrong answer can take a site or mail offline. Plain records only (A, AAAA, ALIAS, CAA, CNAME, MX, PTR, SRV, TXT; no NS/SOA, no traffic-steering filters or metadata). Refuses when the record already exists (use ns1_update_record). Answers are lists of rdata fields: A ["192.0.2.10"], MX [10, "mail.example.com."], TXT ["v=spf1 -all"], SRV [10, 5, 5060, "sip.example.com."], CAA [0, "issue", "letsencrypt.org"]. PUT /v1/zones/{zone}/{domain}/{type}.

ParameterTypeDescription
answers *arrayOne entry per answer, each a list of rdata fields (see the tool description).
domain *stringFull record name inside the zone, e.g. www.example.com (or the zone name itself for the apex).
type *stringRecord type.
zone *stringZone name, e.g. example.com.
ttlintegerTTL in seconds. Omit for the zone default.

ns1_update_record Update DNS record

WRITE: changes ONE existing DNS record and CHANGES LIVE DNS for that name immediately. Giving answers REPLACES all current answers of the record (send the complete new set); giving only ttl changes just the TTL. Plain records only (A, AAAA, ALIAS, CAA, CNAME, MX, PTR, SRV, TXT): when answers are given, a record that uses traffic-steering filters, links or per-answer metadata is refused (edit it in the NS1 portal). Fails if the record does not exist. POST /v1/zones/{zone}/{domain}/{type}.

ParameterTypeDescription
domain *stringFull record name inside the zone, e.g. www.example.com (or the zone name itself for the apex).
type *stringRecord type of the existing record.
zone *stringZone name, e.g. example.com.
answersarrayThe COMPLETE new answer set, each answer a list of rdata fields (as for ns1_create_record).
ttlintegerNew TTL in seconds.