Skip to main content
Glama
SreeTarak2

DataFlow MCP Server

by SreeTarak2

process_raw_data

Normalize, deduplicate, and upsert validated raw contest records into the primary contests collection.

Instructions

Read validated raw records from CHRawdata.rawdata for a given scraper source, normalize, deduplicate, and upsert them into the primary Contests collection (ContestHopperDb).

NOTE: By default, only records with validationStatus="validated" are processed. Run get_records_for_validation + submit_raw_validation first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax records to process per call (default 100, max 1000)
sourceYesScraper name (e.g. "contestwatchers", "opportunityDesk")
auto_imageNoIf True, automatically download, convert (WebP+AVIF), and upload images to R2 after upserting contest data
dedupe_gateNoIf True (default), skip records whose title matches an existing live contest (normalized-title match from a different source, or reworded title from the same source). Set False to force-insert.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the full burden of disclosing behavior. It mentions the read-normalize-deduplicate-upsert flow and the validation gate, but does not explain the side effects of upserting (e.g., overwriting existing records), permissions required, idempotency, or failure behavior. This leaves meaningful gaps for a mutating operation.

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 two sentences plus a note, front-loaded with the core action and resource. Every sentence earns its place: the first states the operation, the second provides a critical default and prerequisite. No fluff.

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?

The description is complete for a batch-ingestion tool: it names inputs, outputs, and workflow order. The output schema exists, so return-value documentation is not required. The only missing context is around operational safety (e.g., reversibility, potential data loss) and error handling, but these are not essential for an agent to invoke the tool correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all four parameters. The description adds only mild context (e.g., that `source` is a scraper name and that upsert happens), but does not materially enhance parameter understanding beyond the schema.

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 tool reads validated raw records, normalizes, deduplicates, and upserts them into a specific collection (ContestHopperDb). It names the source table (CHRawdata.rawdata) and the target, distinguishing it from the many sibling tools that deal with validation or other processing steps.

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

Usage Guidelines5/5

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

The description explicitly says to run get_records_for_validation + submit_raw_validation first, providing a clear prerequisite. It also notes the default behavior of only processing records with validationStatus='validated', which tells the agent when this tool is appropriate.

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/SreeTarak2/dataflow_mcp'

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