AskNicely MCP by usefulapi

v1.2.1
io.usefulapi/asknicely Checked 3 days ago Published 1 day ago

Read NPS scores, survey responses and contacts; add contacts and send surveys in AskNicely.

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

asknicely_get_nps Get NPS score

Get the Net Promoter Score for the last N days, optionally filtered by custom fields (e.g. country_c = Canada). Returns the score as text. AskNicely API: GET /api/v1/getnps/{days}.

ParameterTypeDescription
daysintegerDays back from today to cover (default 30).
filtersarrayFilters on custom fields. Each entry pairs a field name with the value to match.

asknicely_get_historical_stats Get email statistics

Get statistics of the surveys AskNicely sent, for a day, month or year, optionally by segment or time range. AskNicely API: GET /api/v1/stats.

ParameterTypeDescription
dayintegerDay of the month (1-31).
end_timeintegerUnix timestamp: responses sent at or before this time.
monthintegerMonth (1-12).
segmentstringOnly count this customer segment, e.g. "VIP Customer".
start_timeintegerUnix timestamp: responses sent at or after this time.
yearintegerYear, e.g. 2026.

asknicely_get_contact Get a contact

Get one contact (name, segment, last emailed time, active flag, unsubscribe time) by email, id or a custom field. AskNicely API: GET /api/v1/contact/get/{search}/{key}.

ParameterTypeDescription
search *stringThe value to find, e.g. schrodinger@example.com.
keystringField to search by: "email" (default), "id", or a custom field name such as "customer_id_c".

asknicely_list_responses List survey responses

List survey responses (score, comment, responder, question type) since a unix time, newest or oldest first. Use filter=raw to include surveys not answered yet. Up to 50,000 per call; follow the page numbers for more. AskNicely API: GET /api/v1/responses/{...}.

ParameterTypeDescription
since_time *integerUnix timestamp: only responses after this time (0 = all).
end_timeintegerUnix timestamp: only responses before this time (default now).
filterstringanswered (default): responses only; raw: all surveys sent; published: testimonials only.
page_numberintegerPage number, starting at 1 (default 1).
page_sizeintegerRows per page (default 50, max 50,000).
sort_bystringSort by send date or response date (default responded).
sort_directionstringSort order (default asc).

asknicely_list_unsubscribed List unsubscribed contacts

List every contact who unsubscribed from AskNicely emails. Check this before you send a survey by another route. AskNicely API: GET /api/v1/contacts/unsubscribed.

asknicely_add_contacts Add or update contacts

Add or update up to 500 contacts in one call (email is required; name, segment and custom fields are optional). By default no survey is sent. Set obeyrules=true to send surveys to eligible contacts. A contact who unsubscribed stays unsubscribed. AskNicely API: POST /api/v1/contacts/add.

ParameterTypeDescription
contacts *arrayContacts. Extra keys must be custom fields named in snake_case ending in "_c".
obeyrulesbooleantrue: send a survey to eligible contacts under the account's contact rules (default false).

asknicely_send_survey Send a survey

Send one NPS survey email to a customer, if the account's contact rules allow it. This emails a real customer. Use asknicely_add_contacts with obeyrules=false to add a contact without sending. AskNicely API: POST /api/v1/contact/trigger.

ParameterTypeDescription
email *stringThe customer's email address.
custom_fieldsobjectExtra custom data, keyed by field name. Names must end in "_c", e.g. {"branch_location_c": "Portland"}.
delay_minutesintegerSend the survey after this many minutes (0 = now).
namestringFull name.
segmentstringCustomer segment.

asknicely_remove_contact Deactivate a contact

Deactivate a contact so they get no more surveys. The contact is kept, not deleted, and asknicely_add_contacts re-activates them. For a GDPR erasure, use the AskNicely dashboard. AskNicely API: GET /api/v1/contact/remove/{search}/{key}.

ParameterTypeDescription
search *stringThe value to find, e.g. schrodinger@example.com.
keystringField to search by: "email" (default), "id", or a custom field name such as "customer_id_c".