Refiner MCP by usefulapi
Read surveys, responses and reports; identify users, track events and tag responses in Refiner.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"refiner": {
"url": "https://refiner.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://refiner.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(11)
🟢refiner_get_environment
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/.
入力スキーマ
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_get_account
Get the Refiner subscription plan, monthly active user and survey limits, and usage counts for each environment. Refiner API: GET /v1/account.
入力スキーマ
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_list_forms(list, include_info, include_config, page, page_length)
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.
入力スキーマ
{
"type": "object",
"properties": {
"list": {
"description": "Survey state filter (default all).",
"type": "string",
"enum": [
"all",
"published",
"drafts",
"archived",
"all_with_archived"
]
},
"include_info": {
"description": "Add publish dates, response and view counts, and folder.",
"type": "boolean"
},
"include_config": {
"description": "Add the survey configuration and each element. Large output.",
"type": "boolean"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_length": {
"description": "Items per page (default 100, max 1000).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_list_responses(form_uuid, form_uuids, segment_uuid, segment_uuids, tag_uuid, ...)
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.
入力スキーマ
{
"type": "object",
"properties": {
"form_uuid": {
"description": "Only responses to this survey uuid.",
"type": "string",
"minLength": 1
},
"form_uuids": {
"description": "Only responses to these survey uuids.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"segment_uuid": {
"description": "Only users in this segment uuid.",
"type": "string",
"minLength": 1
},
"segment_uuids": {
"description": "Only users in these segment uuids.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"tag_uuid": {
"description": "Only responses with this tag uuid.",
"type": "string",
"minLength": 1
},
"tag_uuids": {
"description": "Only responses with any of these tag uuids.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"date_range_start": {
"description": "Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.",
"type": "string",
"minLength": 1
},
"date_range_end": {
"description": "Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.",
"type": "string",
"minLength": 1
},
"include": {
"description": "completed (default), partials (includes partial responses) or all (includes dismissed views).",
"type": "string",
"enum": [
"completed",
"partials",
"all"
]
},
"search": {
"description": "Match the contact user ID, Refiner UUID, email or name.",
"type": "string",
"minLength": 1
},
"response_data": {
"description": "Filter by survey answers, for example {\"nps\": 9}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"contact_data": {
"description": "Filter by contact traits, for example {\"country\": \"France\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"account_data": {
"description": "Filter by account traits, for example {\"plan\": \"pro\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"with_attributes": {
"description": "Add every trait on record to each contact.",
"type": "boolean"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_length": {
"description": "Items per page (default 100, max 1000).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"page_cursor": {
"description": "next_page_cursor from the previous page, for large result sets.",
"type": "string",
"minLength": 1
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_get_reporting(type, form_uuids, segment_uuids, tag_uuids, question_identifiers, ...)
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.
入力スキーマ
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"nps",
"csat",
"ratings",
"distribution",
"count"
],
"description": "Report type."
},
"form_uuids": {
"description": "Only count these survey uuids.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"segment_uuids": {
"description": "Only count users in these segment uuids.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"tag_uuids": {
"description": "Only count responses with these tag uuids.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"question_identifiers": {
"description": "Only count these question slugs.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"date_range_start": {
"description": "Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.",
"type": "string",
"minLength": 1
},
"date_range_end": {
"description": "Date as YYYY-MM-DD, or date and time as YYYY-MM-DD hh:mm:ss.",
"type": "string",
"minLength": 1
},
"response_data": {
"description": "Object of attribute slug to value. All keys must match.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"contact_data": {
"description": "Object of attribute slug to value. All keys must match.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"account_data": {
"description": "Object of attribute slug to value. All keys must match.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"required": [
"type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_list_contacts(order_by, form_uuid, segment_uuid, search, page, ...)
List contacts (users) with their attributes, segments and account. Filter by survey, segment or search text. Refiner API: GET /v1/contacts.
入力スキーマ
{
"type": "object",
"properties": {
"order_by": {
"description": "Sort order (default first_seen_at).",
"type": "string",
"enum": [
"display_name",
"email",
"first_seen_at",
"last_seen_at",
"last_form_submission_at"
]
},
"form_uuid": {
"description": "Only contacts linked to this survey uuid.",
"type": "string",
"minLength": 1
},
"segment_uuid": {
"description": "Only contacts in this segment uuid.",
"type": "string",
"minLength": 1
},
"search": {
"description": "Match the contact email, user ID or name.",
"type": "string",
"minLength": 1
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_length": {
"description": "Items per page (default 100, max 1000).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"page_cursor": {
"description": "next_page_cursor from the previous page, for large result sets.",
"type": "string",
"minLength": 1
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_get_contact(id)
Get one contact with its attributes, segments, account and last activity. Refiner API: GET /v1/contact.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "Your user ID or the user's email. Give at least one."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢refiner_list_segments(page, page_length)
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.
入力スキーマ
{
"type": "object",
"properties": {
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_length": {
"description": "Items per page (default 100, max 1000).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡refiner_identify_user(id, email, traits, account_id, account_name)
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.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "Your user ID for the user.",
"type": "string",
"minLength": 1
},
"email": {
"description": "The user's email. Use it when there is no user ID.",
"type": "string",
"pattern": "^[^\\s@]+@[^\\s@]+$"
},
"traits": {
"description": "Trait values by slug. Keys ending in _at are read as dates.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
}
},
"account_id": {
"description": "Your account ID, to group the user under an account.",
"type": "string",
"minLength": 1
},
"account_name": {
"description": "Display name for the account.",
"type": "string",
"minLength": 1
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴refiner_track_event(id, email, 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.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "Your user ID for the user.",
"type": "string",
"minLength": 1
},
"email": {
"description": "The user's email. Use it when there is no user ID.",
"type": "string",
"pattern": "^[^\\s@]+@[^\\s@]+$"
},
"event": {
"type": "string",
"minLength": 1,
"description": "The event name."
}
},
"required": [
"event"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡refiner_tag_response(uuid, tags)
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.
入力スキーマ
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"minLength": 1,
"description": "The survey response uuid."
},
"tags": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Tag names to add (max 20)."
}
},
"required": [
"uuid",
"tags"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}コミュニティ
エビデンス