🔧 Available Tools
The ClosedLoop MCP Server provides comprehensive tools for accessing and searching customer insight data:- list_insights - Retrieve insights with filtering and pagination
- get_insight_detail - Get detailed information about specific insights
- search_insights - Advanced full-text search with relevance ranking
📋 list_insights
Retrieve customer insights with optional filtering and pagination.Description
Get a paginated list of customer insight items for the authenticated team. Supports date range filtering and pagination to help you find the insights you need.Input Schema
Parameters
Start date for insight filtering. Format: YYYY-MM-DD (e.g., “2024-01-01”)
End date for insight filtering. Format: YYYY-MM-DD (e.g., “2024-01-31”)
Page number for pagination. Minimum: 1
Number of insight items per page. Range: 1-100
Example Usage
Get Recent Insights
Get Insights from Date Range
Get All Insights (Paginated)
Response Format
Response Data Structure
Insight Object Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier (UUID) |
content | string | The actual insight text |
sentiment | string | AI-determined sentiment (positive/negative/neutral) |
topic | string | Categorized topic (feature_request/bug_report/complaint/praise) |
priority | string | Priority level (low/medium/high/critical) |
source | string | Data source (gong/zendesk/intercom/slack) |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
metadata | object | Additional context data |
Metadata Fields
| Field | Type | Description |
|---|---|---|
customer_id | string | Customer identifier |
call_duration | number | Call duration in seconds (Gong) |
speaker | string | Who spoke (customer/agent) |
call_id | string | Call identifier (Gong) |
🔍 get_insight_detail
Get detailed information about a specific insight item.Description
Retrieve comprehensive details about a specific insight item, including full analysis and metadata. This tool provides deeper insights than the list view.Input Schema
Parameters
UUID of the insight item to retrieve details for
Example Usage
Get Specific Insight Details
Response Format
Response Data Structure
Analysis Fields
| Field | Type | Description |
|---|---|---|
key_points | array | Extracted key points from the insight |
action_items | array | Suggested action items based on the insight |
sentiment_score | number | Numeric sentiment score (0-1, where 0 is negative) |
confidence | number | AI confidence level (0-1) |
business_impact | string | Business impact assessment (low/medium/high) |
urgency | string | Urgency level (low/medium/high) |
🔍 search_insights
Advanced full-text search across customer insights with relevance ranking and comprehensive filtering.Description
Perform powerful full-text search across customer insights using PostgreSQL’s tsvector technology. This tool provides much more sophisticated search capabilities than basic filtering, with relevance ranking, phrase search, fuzzy matching, and field-specific search options.Key Features
- Full-text search across 8+ insight fields
- Relevance ranking - most relevant results appear first
- Phrase search - find exact phrases like “mobile app”
- Fuzzy matching - handles typos automatically
- Field-specific search - search specific fields or all fields
- Advanced filtering - category, severity, date range, source
- Language agnostic - works with any language
Input Schema
Parameters
Search query text. Supports phrase search with quotes, fuzzy matching, and works in any language.
Specific fields to search in. Options: signal_title, content, pain_point, workaround, use_case, feature_area, competitor_gap, willingness_to_pay. If not specified, searches all fields.
Filter by insight category. Options: Bug, Performance Issue, Security Issue, Feature Request, Improvement, UX/UI Issue, Documentation, Integration Issue, Missing Functionality.
Filter by severity level. Options: critical, high, medium, low.
Start date for filtering. Format: YYYY-MM-DD (e.g., “2024-01-01”)
End date for filtering. Format: YYYY-MM-DD (e.g., “2024-01-31”)
Filter by integration source name (e.g., “Gong”, “Typeform”).
Page number for pagination. Minimum: 1, Maximum: 1000
Number of insight items per page. Range: 1-100
Example Usage
Basic Search
Advanced Search with Filters
Field-Specific Search
Phrase Search
Response Format
Response Data Structure
Searchable Fields
| Field | Description | Example Search |
|---|---|---|
signal_title | Insight title | ”Mobile app startup” |
content | Raw feedback content | ”app crashes frequently” |
pain_point | Customer pain points | ”slow loading times” |
workaround | Customer workarounds | ”using competitor app” |
use_case | Use case descriptions | ”real-time collaboration” |
feature_area | Feature categorization | ”mobile app” |
competitor_gap | Competitive analysis | ”better than Salesforce” |
willingness_to_pay | Payment willingness | ”pay extra for features” |
Search Features
Full-Text Search Capabilities:- Phrase Search: Find exact phrases like “mobile app”
- Fuzzy Matching: Handles typos automatically (e.g., “moblie” matches “mobile”)
- Relevance Ranking: Results ordered by relevance score
- Language Agnostic: Works with any language using PostgreSQL’s ‘simple’ configuration
- Field Selection: Search specific fields or all fields
💡 Best Practices
Efficient Data Retrieval
- Use date ranges to limit results when possible
- Start with smaller page sizes for testing
- Use
get_insight_detailonly when you need the full analysis
Search Optimization
- Use specific search terms for better relevance
- Combine search with filters (category, severity) for faster results
- Use field-specific search when you know where to look
- Try phrase searches with quotes for exact matches
- Use date ranges to limit search scope
Performance Optimization
- Cache results when appropriate
- Use pagination for large datasets
- Consider date ranges for historical data
- Use
search_insightsfor complex queries instead oflist_insights+ filtering
🔗 Related Resources
- MCP Server Overview - Learn about the MCP server architecture
- Integration Guide - Setup and configuration instructions
Need Help with Integration?
Learn how to set up and configure the MCP server with your AI client