MCP Inception MCP Server

by tanevanwifferen
Verified

execute_map_reduce_mcp_client

Process multiple items in parallel then sequentially reduce the results to a single output.

Input Schema

NameRequiredDescriptionDefault
initialValueNoInitial value for the accumulator (optional).
itemsYesArray of items to process.
mapPromptYesTemplate prompt for processing each individual item. Use {item} as placeholder for the current item.
reducePromptYesTemplate 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" }