Skip to main content

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

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

Streaming Responses

For long-running operations, the server supports streaming:
Streaming events: