Skip to main content
Glama
sifter-ai

sifter-mcp

Official

aggregate_sift

Run MongoDB aggregation pipelines on sift records to compute grouped summaries or extract insights from data.

Instructions

Run a MongoDB aggregation pipeline against a sift's records.

Args:
    sift_id: The sift identifier
    pipeline: MongoDB aggregation pipeline stages
              e.g. [{"$group": {"_id": "$client", "total": {"$sum": "$total"}}}]

Returns:
    Array of aggregated rows

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sift_idYes
pipelineYes
Behavior3/5

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

No annotations exist, so description bears full burden. It mentions running an aggregation pipeline but does not disclose safety (likely read-only), performance implications, or permission requirements. The description is adequate but not thorough.

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

Conciseness5/5

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

The description is concise, using a docstring format with clear sections (Args, Returns). Every sentence is informative, and the example is directly relevant.

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

Completeness4/5

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

For a complex operation with 2 parameters, no schema descriptions, no annotations, and no output schema, the description covers the essentials: purpose, parameters (with example), and return type. Missing explicit error handling or edge cases.

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

Parameters4/5

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

The description adds value beyond the input schema by explaining both parameters and providing an example for the pipeline argument. However, it does not detail all possible pipeline syntax or limitations.

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

Purpose5/5

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

The description clearly states the verb 'Run', the resource 'a sift's records', and the method 'MongoDB aggregation pipeline'. It distinguishes from siblings like query_sift and find_records by specifying aggregation.

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

Usage Guidelines3/5

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

No explicit when-to-use or when-not-to-use guidance is provided. The description implies usage for aggregation tasks but does not explain when to prefer this over query_sift or find_records.

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/sifter-ai/sifter'

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