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

add_dfd_data_element

Adds or updates a data-dictionary element in a DFD model, using DeMarco notation for composition definitions.

Instructions

Add or update a data-dictionary element. 'definition' holds the composition in DeMarco notation, e.g. 'credenciales = usuario + contraseña', 'paciente = identificacion + nombres + (correo)'.

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>",
      "name": "<name>"
    },
    "name": "add_dfd_data_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
nameYes
commentNo
model_idYes
definitionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose upsert semantics ('Add or update') and the meaning of 'definition', but says nothing about what happens when a name already exists, whether the DFD model must be opened first (open_dfd_model/close_dfd_model exist as siblings), whether the change is persisted or requires save_dfd_model, or what is returned.

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 short sentences with zero filler; the core action comes first and the notation example follows immediately. Every clause carries information the agent would otherwise have to guess.

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

Completeness2/5

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

This is a write tool with five parameters, zero annotation coverage, zero schema descriptions, and no output schema, so the description is the only source of behavioral detail. Given that complexity it should explain the model_id source, the effect of re-adding an existing name, and persistence expectations; it covers only the definition format.

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 schema contributes only bare titles. The description meaningfully compensates for the hardest parameter, 'definition', by naming DeMarco notation and giving two concrete examples including the optional-group parentheses syntax. However, 'model_id', 'code', and 'comment' receive no explanation at all, leaving the code-vs-name distinction and which model id to pass unresolved.

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 pair ('Add or update') and a specific resource ('data-dictionary element'), which distinguishes it from the add_dfd_process / add_dfd_data_store / add_dfd_external_entity siblings by resource type. It stops short of naming or contrasting any sibling explicitly, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given, and no alternatives are named (e.g. dfd_data_dictionary for reading, or the other add_dfd_* tools). The only implicit signal is 'Add or update', which hints at upsert-by-name behavior but never confirms it or states prerequisites such as an open model.

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