mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-09 23:03:12 +00:00
fix: improve n8n_list_workflows pagination clarity and performance (Issue #54)
- Changed misleading 'total' field to 'returned' to clarify it's the count in current page - Added 'hasMore' boolean flag for clear pagination indication - Added '_note' guidance when more data is available - Applied same improvements to n8n_list_executions for consistency Performance improvements: - Tool now returns only minimal metadata instead of full workflow structure - Reduced response size by ~95% (from thousands to ~10 tokens per workflow) - Eliminated token limit errors when listing workflows with many nodes - Updated descriptions and documentation to clarify minimal response 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -201,7 +201,7 @@ export const n8nManagementTools: ToolDefinition[] = [
|
||||
},
|
||||
{
|
||||
name: 'n8n_list_workflows',
|
||||
description: `List workflows with optional filters. Supports pagination via cursor.`,
|
||||
description: `List workflows (minimal metadata only). Returns id/name/active/dates/tags. Check hasMore/nextCursor for pagination.`,
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
@@ -323,7 +323,7 @@ export const n8nManagementTools: ToolDefinition[] = [
|
||||
},
|
||||
{
|
||||
name: 'n8n_list_executions',
|
||||
description: `List workflow executions with optional filters. Supports pagination.`,
|
||||
description: `List workflow executions (returns up to limit). Check hasMore/nextCursor for pagination.`,
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user