Skip to content

Commit 855eed1

Browse files
committed
Merge branch 'decrease_token_usage'
2 parents 3f8b9a8 + 386ab01 commit 855eed1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ An MCP server implementation that integrates with Contentful's Content Managemen
1818
- **Content Types**: Manage content type definitions
1919
- **Localization**: Support for multiple locales
2020
- **Publishing**: Control content publishing workflow
21+
- **Smart Pagination**: List operations return maximum 3 items per request to prevent context window overflow, with built-in pagination support
22+
23+
## Pagination
24+
25+
To prevent context window overflow in LLMs, list operations (like search_entries and list_assets) are limited to 3 items per request. Each response includes:
26+
- Total number of available items
27+
- Current page of items (max 3)
28+
- Number of remaining items
29+
- Skip value for the next page
30+
- Message prompting the LLM to offer retrieving more items
31+
32+
This pagination system allows the LLM to efficiently handle large datasets while maintaining context window limits.
2133

2234
## Tools
2335

@@ -33,6 +45,7 @@ An MCP server implementation that integrates with Contentful's Content Managemen
3345

3446
### Asset Management
3547

48+
- **list_assets**: List assets with pagination (3 items per page)
3649
- **upload_asset**: Upload new assets with metadata
3750
- **get_asset**: Retrieve asset details and information
3851
- **update_asset**: Update asset metadata and files

0 commit comments

Comments
 (0)