Refiner MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
include_config | boolean | Add the survey configuration and each element. Large output. |
include_info | boolean | Add publish dates, response and view counts, and folder. |
list | string | Survey state filter (default all). |
page | integer | Page number (default 1). |
page_length | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
account_data | object | Filter by account traits, for example {"plan": "pro"}. |
contact_data | object | Filter by contact traits, for example {"country": "France"}. |
date_range_end | string | Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss. |
date_range_start | string | Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss. |
form_uuid | string | Only responses to this survey uuid. |
form_uuids | array | Only responses to these survey uuids. |
include | string | completed (default), partials (includes partial responses) or all (includes dismissed views). |
page | integer | Page number (default 1). |
page_cursor | string | next_page_cursor from the previous page, for large result sets. |
page_length | integer | Items per page (default 100, max 1000). |
response_data | object | Filter by survey answers, for example {"nps": 9}. |
search | string | Match the contact user ID, Refiner UUID, email or name. |
segment_uuid | string | Only users in this segment uuid. |
segment_uuids | array | Only users in these segment uuids. |
tag_uuid | string | Only responses with this tag uuid. |
tag_uuids | array | Only responses with any of these tag uuids. |
with_attributes | boolean | Add 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.
| Parameter | Type | Description |
|---|---|---|
type * | string | Report type. |
account_data | object | Object of attribute slug to value. All keys must match. |
contact_data | object | Object of attribute slug to value. All keys must match. |
date_range_end | string | Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss. |
date_range_start | string | Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss. |
form_uuids | array | Only count these survey uuids. |
question_identifiers | array | Only count these question slugs. |
response_data | object | Object of attribute slug to value. All keys must match. |
segment_uuids | array | Only count users in these segment uuids. |
tag_uuids | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
form_uuid | string | Only contacts linked to this survey uuid. |
order_by | string | Sort order (default first_seen_at). |
page | integer | Page number (default 1). |
page_cursor | string | next_page_cursor from the previous page, for large result sets. |
page_length | integer | Items per page (default 100, max 1000). |
search | string | Match the contact email, user ID or name. |
segment_uuid | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Your 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
page_length | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Your account ID, to group the user under an account. |
account_name | string | Display name for the account. |
email | string | The user's email. Use it when there is no user ID. |
id | string | Your user ID for the user. |
traits | object | Trait 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.
| Parameter | Type | Description |
|---|---|---|
event * | string | The event name. |
email | string | The user's email. Use it when there is no user ID. |
id | string | Your 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.
| Parameter | Type | Description |
|---|---|---|
tags * | array | Tag names to add (max 20). |
uuid * | string | The survey response uuid. |