AskNicely MCP by usefulapi
Read NPS scores, survey responses and contacts; add contacts and send surveys in AskNicely.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"asknicely": {
"url": "https://asknicely.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://asknicely.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (8)
🟢asknicely_get_nps(days, filters)
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}.
Eingabe-Schema
{
"type": "object",
"properties": {
"days": {
"description": "Days back from today to cover (default 30).",
"type": "integer",
"minimum": 1,
"maximum": 3650
},
"filters": {
"description": "Filters on custom fields. Each entry pairs a field name with the value to match.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
},
"value": {
"type": "string"
}
},
"required": [
"field",
"value"
]
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢asknicely_get_historical_stats(year, month, day, segment, start_time, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"year": {
"description": "Year, e.g. 2026.",
"type": "integer",
"minimum": 2000,
"maximum": 2100
},
"month": {
"description": "Month (1-12).",
"type": "integer",
"minimum": 1,
"maximum": 12
},
"day": {
"description": "Day of the month (1-31).",
"type": "integer",
"minimum": 1,
"maximum": 31
},
"segment": {
"description": "Only count this customer segment, e.g. \"VIP Customer\".",
"type": "string"
},
"start_time": {
"description": "Unix timestamp: responses sent at or after this time.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end_time": {
"description": "Unix timestamp: responses sent at or before this time.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢asknicely_get_contact(search, key)
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}.
Eingabe-Schema
{
"type": "object",
"properties": {
"search": {
"type": "string",
"minLength": 1,
"maxLength": 320,
"description": "The value to find, e.g. [email protected]."
},
"key": {
"description": "Field to search by: \"email\" (default), \"id\", or a custom field name such as \"customer_id_c\".",
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
}
},
"required": [
"search"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢asknicely_list_responses(since_time, sort_direction, page_size, page_number, filter, ...)
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/{...}.
Eingabe-Schema
{
"type": "object",
"properties": {
"since_time": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Unix timestamp: only responses after this time (0 = all)."
},
"sort_direction": {
"description": "Sort order (default asc).",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"page_size": {
"description": "Rows per page (default 50, max 50,000).",
"type": "integer",
"minimum": 1,
"maximum": 50000
},
"page_number": {
"description": "Page number, starting at 1 (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"filter": {
"description": "answered (default): responses only; raw: all surveys sent; published: testimonials only.",
"type": "string",
"enum": [
"answered",
"raw",
"published"
]
},
"sort_by": {
"description": "Sort by send date or response date (default responded).",
"type": "string",
"enum": [
"sent",
"responded"
]
},
"end_time": {
"description": "Unix timestamp: only responses before this time (default now).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"since_time"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢asknicely_list_unsubscribed
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.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴asknicely_add_contacts(contacts, obeyrules)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"contacts": {
"minItems": 1,
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "Contact email (required)."
},
"name": {
"description": "Full name.",
"type": "string",
"maxLength": 200
},
"segment": {
"description": "Customer segment, e.g. \"VIP Customer\".",
"type": "string",
"maxLength": 200
}
},
"required": [
"email"
],
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"description": "Contacts. Extra keys must be custom fields named in snake_case ending in \"_c\"."
},
"obeyrules": {
"description": "true: send a survey to eligible contacts under the account's contact rules (default false).",
"type": "boolean"
}
},
"required": [
"contacts"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴asknicely_send_survey(email, name, segment, delay_minutes, custom_fields)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "The customer's email address."
},
"name": {
"description": "Full name.",
"type": "string",
"maxLength": 200
},
"segment": {
"description": "Customer segment.",
"type": "string",
"maxLength": 200
},
"delay_minutes": {
"description": "Send the survey after this many minutes (0 = now).",
"type": "integer",
"minimum": 0,
"maximum": 525600
},
"custom_fields": {
"description": "Extra custom data, keyed by field name. Names must end in \"_c\", e.g. {\"branch_location_c\": \"Portland\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"email"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴asknicely_remove_contact(search, key)
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}.
Eingabe-Schema
{
"type": "object",
"properties": {
"search": {
"type": "string",
"minLength": 1,
"maxLength": 320,
"description": "The value to find, e.g. [email protected]."
},
"key": {
"description": "Field to search by: \"email\" (default), \"id\", or a custom field name such as \"customer_id_c\".",
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
}
},
"required": [
"search"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis