Smart Response Management
The MCP Server automatically optimizes large responses for better performance and usability.When You’ll See Different Responses
1. Large Datasets (more than 50 items)
Instead of overwhelming the MCP client with hundreds of results, the server returns helpful guidance:2. Medium Datasets (25-50 items)
Automatically limited with metadata:3. Normal Responses (less than 25 items)
Standard response with full data.Why This Matters
- Better Performance: Faster responses, less data transfer
- Smarter Interactions: The AI guides you to refine searches
- Platform Limits: Respects rate limits of external APIs
Error Responses
All errors follow a consistent format:Common Error Codes
Code | Description | HTTP Status |
---|---|---|
INVALID_REQUEST | Malformed request | 400 |
UNAUTHORIZED | Invalid or missing auth | 401 |
FORBIDDEN | Insufficient permissions | 403 |
NOT_FOUND | Resource not found | 404 |
RATE_LIMITED | Too many requests | 429 |
INTERNAL_ERROR | Server error | 500 |
CREDENTIAL_NOT_FOUND | Platform credential missing | 400 |
CONNECTOR_NOT_FOUND | Invalid connector ID | 404 |
ACTION_NOT_FOUND | Invalid action ID | 404 |
Error Context
Errors include contextual information to help debug issues:Response Size Management
Automatic Truncation
To prevent overwhelming responses:- Arrays: Limited to 25 items by default
- Strings: Truncated at 5KB with ellipsis
- Nested objects: Deep nesting limited to 10 levels
Elicitation Pattern
For large datasets, the server provides guidance instead of raw data:Caching
Responses are cached for improved performance:- Cache TTL: 1 hour for read operations
- Cache Key: Based on connector, action, and parameters
- Cache Invalidation: Automatic on write operations
- Cache Headers:
X-Cache-Hit: true
when served from cache