Skip to main content
Glama
newen-systems

nifi-mcp

nifi_replace_flow

Destructive

Overwrite an existing NiFi process group with a flow snapshot. This destructive action should target a sandbox process group, not production.

Instructions

Overwrite an existing process group with a flow snapshot. Destructive. Prefer a sandbox PG.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so 'Destructive' largely restates structured data. The added 'Prefer a sandbox PG' recommendation is genuine value beyond annotations, but it still omits what exactly gets destroyed (existing PG contents) and whether the operation is reversible.

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?

Three terse, front-loaded sentences with no filler. The action is stated first, risk second, mitigation third – every sentence earns its place.

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

Completeness3/5

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

An output schema exists so return values need not be described, and annotations cover the safety profile. Still, for a destructive overwrite of a process group, the description does not explain what existing content is replaced or how it relates to the sibling import/apply tools.

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 0% and the two inner fields (process_group_id, snapshot) carry no descriptions. The description only echoes 'flow snapshot' from the schema; it adds no format, structure, or sourcing detail for the snapshot payload, leaving the parameter under-explained.

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?

States a specific verb and resource: 'Overwrite an existing process group with a flow snapshot.' Clear what it does, but it does not differentiate itself from close siblings like nifi_apply_flow_spec or nifi_import_flow, which an agent would need to choose between.

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?

'Prefer a sandbox PG' gives a safety-oriented usage hint, which is useful context. However, it never states when to pick this tool over nifi_import_flow or nifi_apply_flow_spec, so the alternative-selection guidance is only implied.

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