Skip to main content
Glama
SreeTarak2

DataFlow MCP Server

by SreeTarak2

submit_structured_events

Submit structured event records to MongoDB with deduplication by source and title, blocking duplicate titles and applying schema defaults.

Instructions

Submit structured event records (following the event-structuring-v1.1.txt events-v1.1 schema) produced by a chatbot and persist them to the Events collection.

This is the event counterpart of submit_structured_records:

  • Deduplication key: source.name + title (upsert-in-place on re-submit).

  • Optional duplicate-title GATE (on by default): a record whose title matches an existing LIVE event — same normalized title from a different source, or a reworded title from the same source — is SKIPPED and reported under "duplicates".

  • events-v1.1 defaults are applied (type="event", status="draft", visibility="public", featured=false, analytics=0) and off-schema enum values are downgraded to null with a warning (see details).

  • The audit metadata block is stripped unless keep_metadata=True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dedupe_gateNoIf True (default), block events that duplicate an existing live event by normalized title. Set False to force-insert (e.g. intentional re-ingest).
events_jsonYesJSON string — either a single object or an array of structured event objects following the events-v1.1 schema
keep_metadataNoIf True, retain each event's metadata audit block (searchLog, fieldConfidence, discoveredEvents, ...).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully carries the behavioral burden. It discloses deduplication key, upsert-in-place behavior, the duplicate-title gate with its default and effect, applied defaults, enum downgrade behavior, and metadata stripping — all beyond what the schema conveys.

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

Conciseness4/5

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

The description is well-organized with a short summary followed by bullet points for key behaviors. It is concise for the complexity it covers, though the phrase '(see details)' hints at external info that isn't provided inline, slightly reducing self-contained clarity.

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

Completeness5/5

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

Given the tool's complexity (deduplication, gating, defaults, enum handling, metadata), the description covers all major behaviors. An output schema exists, so return value documentation is not needed. The description is complete enough for an agent to use 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 coverage is 100% and the schema descriptions are already detailed for every parameter. The description adds little new parameter-specific meaning; it mostly restates the schema, so a baseline of 3 is appropriate.

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 opens with a specific verb and resource: 'Submit structured event records... and persist them to the Events collection.' It also distinguishes itself from the sibling submit_structured_records by calling itself 'the event counterpart,' making its scope unmistakable.

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

Usage Guidelines4/5

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

It explicitly names the counterpart tool, which conveys when to use this vs. that (events vs. records). However, it does not detail when not to use it or provide alternative scenarios, so it stops short of full when/when-not guidance.

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