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

create_column

Adds a column (attribute) to a table in a PowerDesigner model, including data type, length, precision, default value, and mandatory flag. Supports dry-run preview before applying changes.

Instructions

Add a column to a table (an attribute, in CDM/LDM terms). Supported properties: name, code, data_type (e.g. 'VARCHAR', 'INT', 'DATETIME'), length, precision, mandatory, default_value, comment, description, domain (ref or code), primary (include in primary key). In a CDM/LDM the data type is rendered in PowerDesigner's own vocabulary ('Variable characters(20)') and 'primary' is ignored - primacy is set with create_primary_key. Supports dry_run.

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

Input Schema

NameRequiredDescriptionDefault
codeNo
nameYes
domainNo
lengthNo
commentNo
dry_runNo
primaryNo
model_idYes
data_typeNo
mandatoryNo
precisionNo
table_refYes
default_valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose genuinely non-obvious behavior: data types are rendered in PowerDesigner vocabulary in CDM/LDM ('Variable characters(20)') and the 'primary' flag is silently ignored there. It also flags a dry_run mode. It does not say what dry_run returns, where the new column is placed, or what error conditions (duplicate name, bad domain ref) look like.

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?

Purpose is front-loaded in the first clause, and the two dense sentences carry only substantive content. The property enumeration is long but each item earns its place given 0% schema coverage. Minor cost: the CDM/LDM caveat is buried mid-sentence rather than called out.

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 13-parameter mutation tool with no annotations and no output schema, the description covers the field set, the type vocabulary quirk, the ignored-parameter trap, the sibling that owns primacy, and the dry_run preview. The remaining omissions (dry_run response shape, placement) are modest rather than blocking.

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 largely does: it enumerates name, code, data_type with concrete examples, length, precision, mandatory, default_value, comment, domain ('ref or code'), and primary, plus the dry_run mode. Gaps remain — model_id and table_ref (both required) are never explained, and 'description' is listed as a supported property but does not exist in the schema, which is a minor mismatch.

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?

States a specific verb and resource ('Add a column to a table') and immediately disambiguates the concept with the domain gloss 'an attribute, in CDM/LDM terms'. It also names the sibling create_primary_key where responsibilities overlap, so an agent can distinguish it from the primacy path without opening the 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?

Gives conditional routing guidance: 'primary' should not be relied on in CDM/LDM because primacy is set with create_primary_key instead. That is a real use-this-not-that rule. It stops short of explaining when to use create_column versus update_column, rename_column, or delete_column, so the guidance is clear but not exhaustive.

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