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

create_dfd_model

Creates a new, empty Data Flow Diagram model in PowerDesigner, saves it to a .bpm path, and returns a model_id that the other DFD tools use.

Instructions

Create a new, empty Data Flow Diagram model (PowerDesigner BPM with the 'Data Flow Diagram' language), saved at once to 'path' (.bpm, must not exist). Returns its model_id (dfdN) for the other DFD tools.

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": {
      "name": "<name>",
      "path": "<path>"
    },
    "name": "create_dfd_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
nameYes
pathYes
commentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses that the model is created empty, persisted immediately ('saved at once to path'), that the file must not already exist, and what identifier comes back. It leaves open what happens on failure (e.g. error vs. overwrite) and whether directories or permission issues are handled.

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?

Two dense sentences with no filler; the core action and format come first, followed by the persistence and return-value facts an agent needs before calling.

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?

No output schema exists, so it is valuable that the description states the returned model_id shape (dfdN) and its purpose downstream. For a create tool with no annotations the coverage is nearly complete; only failure modes and the meaning of code/comment are missing.

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%, so the description must compensate, and it does well for 'path' by specifying the .bpm extension and the must-not-exist precondition. It says nothing about 'name', 'code' (a PowerDesigner concept with a default of ''), or 'comment', leaving three of four parameters undocumented.

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?

The description gives a specific verb and resource ('Create a new, empty Data Flow Diagram model') and pins the artifact down further with the PowerDesigner BPM / 'Data Flow Diagram' language and .bpm file format. It implicitly separates itself from the generic create_model and from open_dfd_model, though it never names an alternative outright.

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?

The phrase 'Returns its model_id (dfdN) for the other DFD tools' tells the agent this is the entry point before add_dfd_process/add_dfd_flow etc., which is useful sequencing guidance. However, there is no explicit when-not (e.g. when to use create_model instead, or how it relates to open_dfd_model) and no prerequisites beyond the path constraint.

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