Skip to main content
Glama
SreeTarak2

DataFlow MCP Server

by SreeTarak2

apply_migration_patch

Apply a validated patch to update one contest, enforcing field whitelist, schema compliance, destructive-write protection, and cross-field consistency before any write.

Instructions

Apply a validated normalized patch to update a single contest.

All patches go through 4 validations before writing:

  1. Field whitelist — only allowed fields may be patched

  2. Schema compliance — types, enums, formats checked

  3. Destructive write protection — populated fields not overwritten with null

  4. Cross-field consistency — no contradictory values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoIf True, bypass destructive write protection (use with caution)
contest_idYesMongoDB ObjectId of the contest (as string)
patch_jsonYesJSON string with fields to update

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It explicitly discloses the four-stage validation pipeline, including destructive write protection and field whitelisting, which goes beyond a generic 'update' description. It does not detail error handling or return values, but the output schema presumably covers that.

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 and front-loaded with the primary purpose, followed by a clear bulleted list of validation steps. Every sentence earns its place with no fluff or redundancy.

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?

Given the tool's moderate complexity and absence of annotations, the description covers the critical behavioral context (validation pipeline, write protection). The existence of an output schema handles return values. It stops short of mentioning force's role explicitly or potential error conditions, but overall it is sufficiently complete for an agent to select and invoke the tool safely.

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?

Although schema coverage is 100%, the description adds meaning by explaining that patch_json is subject to field whitelist, schema compliance, destructive write protection, and cross-field consistency checks. This helps an agent understand constraints on patch_json beyond the raw schema. The 'force' parameter is implicitly tied to the destructive write protection validation, adding contextual value.

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+resource statement: 'Apply a validated normalized patch to update a single contest.' It clearly distinguishes this tool from siblings like bulk_apply_migrations (single vs. bulk) and update_document (contest-specific validation pipeline).

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?

The description implies when to use this tool by emphasizing the validation pipeline and 'single contest' scope, which contrasts with bulk alternatives. It does not explicitly name alternatives or exclusions, but the context is clear enough for an agent to differentiate from update_document and bulk_apply_migrations.

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