Refiner MCP by usefulapi

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

Read surveys, responses and reports; identify users, track events and tag responses in Refiner.

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

refiner_get_environment Check the API key

Check the API key and return the uuid and name of the Refiner environment it belongs to. Call this first to confirm the connection. Refiner API: GET /v1/.

refiner_get_account Get account and plan usage

Get the Refiner subscription plan, monthly active user and survey limits, and usage counts for each environment. Refiner API: GET /v1/account.

refiner_list_forms List surveys

List the surveys (forms) in the environment, ordered by name. Filter by state. include_info adds publish dates, response and view counts, and the folder. Refiner API: GET /v1/forms.

ParameterTypeDescription
include_configbooleanAdd the survey configuration and each element. Large output.
include_infobooleanAdd publish dates, response and view counts, and folder.
liststringSurvey state filter (default all).
pageintegerPage number (default 1).
page_lengthintegerItems per page (default 100, max 1000).

refiner_list_responses List survey responses

List survey responses, newest first, with the survey, tags, segments and contact. Filter by survey, segment, tag, date range, answers, contact traits and account traits. Refiner API: GET /v1/responses.

ParameterTypeDescription
account_dataobjectFilter by account traits, for example {"plan": "pro"}.
contact_dataobjectFilter by contact traits, for example {"country": "France"}.
date_range_endstringDate as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.
date_range_startstringDate as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.
form_uuidstringOnly responses to this survey uuid.
form_uuidsarrayOnly responses to these survey uuids.
includestringcompleted (default), partials (includes partial responses) or all (includes dismissed views).
pageintegerPage number (default 1).
page_cursorstringnext_page_cursor from the previous page, for large result sets.
page_lengthintegerItems per page (default 100, max 1000).
response_dataobjectFilter by survey answers, for example {"nps": 9}.
searchstringMatch the contact user ID, Refiner UUID, email or name.
segment_uuidstringOnly users in this segment uuid.
segment_uuidsarrayOnly users in these segment uuids.
tag_uuidstringOnly responses with this tag uuid.
tag_uuidsarrayOnly responses with any of these tag uuids.
with_attributesbooleanAdd every trait on record to each contact.

refiner_get_reporting Get survey reporting

Get an aggregated report: nps, csat, ratings, distribution, or count (responses and views). The default range is the last 7 days. Refiner API: GET /v1/reporting.

ParameterTypeDescription
type *stringReport type.
account_dataobjectObject of attribute slug to value. All keys must match.
contact_dataobjectObject of attribute slug to value. All keys must match.
date_range_endstringDate as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.
date_range_startstringDate as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.
form_uuidsarrayOnly count these survey uuids.
question_identifiersarrayOnly count these question slugs.
response_dataobjectObject of attribute slug to value. All keys must match.
segment_uuidsarrayOnly count users in these segment uuids.
tag_uuidsarrayOnly count responses with these tag uuids.

refiner_list_contacts List contacts

List contacts (users) with their attributes, segments and account. Filter by survey, segment or search text. Refiner API: GET /v1/contacts.

ParameterTypeDescription
form_uuidstringOnly contacts linked to this survey uuid.
order_bystringSort order (default first_seen_at).
pageintegerPage number (default 1).
page_cursorstringnext_page_cursor from the previous page, for large result sets.
page_lengthintegerItems per page (default 100, max 1000).
searchstringMatch the contact email, user ID or name.
segment_uuidstringOnly contacts in this segment uuid.

refiner_get_contact Get a contact

Get one contact with its attributes, segments, account and last activity. Refiner API: GET /v1/contact.

ParameterTypeDescription
id *stringYour user ID or the user's email. Give at least one.

refiner_list_segments List segments

List user segments (manual and automatic) by name. Use a segment uuid as a filter on the response, contact and reporting tools. Refiner API: GET /v1/segments.

ParameterTypeDescription
pageintegerPage number (default 1).
page_lengthintegerItems per page (default 100, max 1000).

refiner_identify_user Identify a user and set traits

Create or update a user with a user ID or email, plus any trait values (for example plan or created_at). Traits with the same name overwrite the old value. Optionally group the user under an account. Refiner API: POST /v1/identify-user.

ParameterTypeDescription
account_idstringYour account ID, to group the user under an account.
account_namestringDisplay name for the account.
emailstringThe user's email. Use it when there is no user ID.
idstringYour user ID for the user.
traitsobjectTrait values by slug. Keys ending in _at are read as dates.

refiner_track_event Track a user event

Record an event (for example invoice_paid) for an existing user, by user ID or email. A new user is created if none matches. Each call adds one event that this server cannot remove. Refiner API: POST /v1/track-event.

ParameterTypeDescription
event *stringThe event name.
emailstringThe user's email. Use it when there is no user ID.
idstringYour user ID for the user.

refiner_tag_response Tag a survey response

Add tags to one survey response, by its response uuid (from refiner_list_responses). Up to 20 tags per call. Refiner API: POST /v1/responses/tags.

ParameterTypeDescription
tags *arrayTag names to add (max 20).
uuid *stringThe survey response uuid.