Skip to main content
Glama
powerdesigner-mcp-dfd
by 011011bjf

add_dfd_flow

Add and draw a data flow between processes, external entities, or data stores in a PowerDesigner DFD; at least one end must be a process, and store access is set as read or update.

Instructions

Add a data flow and draw it. source/destination are codes or names of processes, external entities or data stores; at least one end must be a process. Two processes must share a parent, or one must be a sibling of the other's parent (e.g. child 4.3 -> 7.0: drawn on 4.0's child diagram). A flow touching a data store becomes a store access: out of the store = 'read', into it = 'update' (or pass access='create'|'delete'). Name it with a noun (the data); 'data' lists data-dictionary elements it carries (created when missing). The flow is drawn on the diagram of its process end.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model_id": "<model_id>",
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "add_dfd_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
dataNo
nameNo
accessNo
sourceYes
commentNo
model_idYes
destinationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses multiple side effects beyond the flow itself (the flow gets drawn on a diagram of its process end, and missing data-dictionary elements are auto-created when they appear in 'data'). It also discloses the implicit read/update inference from data-store direction. It does not state failure behavior when the hierarchy or process-end constraint is violated, nor any permission requirements.

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?

Dense but front-loaded: the action comes first, then constraints, then per-parameter semantics. Nearly every clause adds information, though the hierarchy rule and the drawing-location statement are stated twice in different words.

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 an 8-parameter mutation tool with no annotations and no output schema, this covers the important ground: validity constraints, side effects, access classification, and naming. Gaps remain around what is returned (flow code/id), whether auto-created data elements are reported back, and what happens on constraint violations.

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?

Schema description coverage is 0%, so the description must compensate, and it does for the most consequential params: 'source'/'destination' accept codes or names of processes, external entities or data stores; 'access' takes 'create'|'delete' or is inferred from store direction; 'data' lists data-dictionary elements created when missing; 'name' should be a noun describing the data. The 'code' and 'comment' parameters are never explained, and 'model_id' is left implicit.

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 first sentence gives a specific verb and resource ("Add a data flow and draw it"), which is immediately distinguishable from the process/entity/store creation siblings. The remaining sentences define the resource's semantics (source/destination ends, drawing location) so an agent knows exactly what object is being created.

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 gives concrete preconditions for use: at least one end must be a process, and the two ends must share a parent or one must be a sibling of the other's parent, with a worked example (4.3 -> 7.0 drawn on 4.0's child diagram). Access-type switching between implicit read/update and explicit 'create'/'delete' is also explained. It stops short of naming alternative tools or stating when not to call it (e.g. use a plain process/entity tool first).

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