Skip to main content
Glama

batch_batch_reduce

Process arrays by applying a reduction function to combine items into a single value. Supports built-in operations like sum, product, max, min, and concatenation.

Instructions

[batch] Fold items with fn(acc, item). initial=starting accumulator. Built-in reducers: sum/product/max/min/concat.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
fnYes
initialNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server