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

dfd_from_spec

Build, lay out, save, and validate a complete Yourdon/DeMarco data flow diagram from a JSON specification in one call, including context and critical-process diagrams.

Instructions

Build a whole DFD in one call, lay it out, save it and check it. spec = {name, path (.bpm, new), code?, comment?, data: [{name, code?, definition?, comment?}], external_entities: [{name, code?, comment?, temporal?}], data_stores: [{name, code?, comment?}], processes: [{name, code?, comment?, parent?}] (parent = code of a process to explode; any order), flows: [{source, destination, name?, code?, data?: [names], access?, comment?}], diagram_names?: {"": top diagram title, : child diagram title}}. Context diagram: one process, entities, flows, no stores. Critical processes: add children with parent= plus their flows and stores. On error the file is left as an empty DFD. Large specs: pass spec_path (a UTF-8 .json file with the same shape) instead of spec.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dfd_from_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNo
spec_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/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 that the call writes ("save it") to a file at path marked ".bpm, new", that it implicitly runs a check, and crucially the failure mode "On error the file is left as an empty DFD." Not covered: overwrite behavior if the path exists, whether a failed check aborts the save, or any required permissions.

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 action summary is front-loaded in one sentence before the schema detail, and every clause carries information. The cost is a single very dense run-on listing of the spec shape that is harder to scan than a bulleted structure would be.

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?

For a high-complexity composite tool with an entirely undescribed two-parameter schema and no output schema, the description covers the input contract, the modeling recipes, the escape hatch for large specs, and the error outcome — everything an agent needs to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (both params are bare anyOf/string), so the description must supply all meaning, and it does: every key of the spec object is enumerated with its sub-fields, defaults, and the semantics of ambiguous ones (parent = code of a process to explode, any order; diagram_names maps diagram title per process code). spec_path is defined as a UTF-8 .json file with the same shape.

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?

"Build a whole DFD in one call, lay it out, save it and check it" states a specific verb and resource plus the four composed operations, which cleanly distinguishes it from the granular siblings (add_dfd_*, layout_dfd, save_dfd_model, check_dfd). An agent can tell this is the bulk/composite path without opening any schema.

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 usage recipes: context diagrams are "one process, entities, flows, no stores", critical processes are modeled by adding children with parent=<code>, and large specs should use spec_path instead of spec. That is strong positive guidance and an explicit alternative path, though it never states when to prefer the incremental sibling tools over this one.

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