Skip to main content
Glama

map_reduce_mr_group

Groups dataset items based on a specified field, returning a dictionary of values with their associated items for structured analysis.

Instructions

[map_reduce] Group items by field value → {group_key: [items]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
fieldYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, and description fails to disclose any behavioral traits such as whether it mutates data, error handling for missing fields, or performance implications. The description is too minimal to convey necessary behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is extremely concise (one line) but at the cost of completeness. While front-loaded with the operation, it omits critical parameter and usage details. It is under-specified rather than efficiently concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the grouping operation's complexity and the lack of schema descriptions or output schema details (though output schema exists), the description is woefully incomplete. No explanation of input format, output structure, error handling, or comparison with sibling tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain parameters 'data' (expected format, e.g., JSON array of objects) or 'field' (which field in objects to group by). No value added beyond bare parameter names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it groups items by field value and gives output format {group_key: [items]}, distinguishing from siblings like mr_filter or mr_map. However, it could be more precise about what 'items' are (e.g., array of objects) and the data source.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives (e.g., mr_reduce, mr_map). No mention of prerequisites or data format requirements. The description only implies grouping use case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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