execute_map_reduce_mcp_client
Execute parallel processing of multiple items using a map prompt, then sequentially reduce the results to a single output with a reduce prompt. Designed for efficient task delegation and context offloading within the MCP Inception MCP Server.
Instructions
Process multiple items in parallel then sequentially reduce the results to a single output.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
initialValue | No | Initial value for the accumulator (optional). | |
items | Yes | Array of items to process. | |
mapPrompt | Yes | Template prompt for processing each individual item. Use {item} as placeholder for the current item. | |
reducePrompt | Yes | Template prompt for reducing results. Use {accumulator} and {result} as placeholders. |
Input Schema (JSON Schema)
{
"properties": {
"initialValue": {
"description": "Initial value for the accumulator (optional).",
"type": "string"
},
"items": {
"description": "Array of items to process.",
"items": {
"type": "string"
},
"type": "array"
},
"mapPrompt": {
"description": "Template prompt for processing each individual item. Use {item} as placeholder for the current item.",
"type": "string"
},
"reducePrompt": {
"description": "Template prompt for reducing results. Use {accumulator} and {result} as placeholders.",
"type": "string"
}
},
"required": [
"mapPrompt",
"reducePrompt",
"items"
],
"type": "object"
}