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

create_index

Create normal, unique, or composite indexes on tables in PowerDesigner physical data models (PDM), with dry-run support; CDM and LDM are rejected.

Instructions

Create an index on a table: normal, unique or composite. Example: columns=['user_id','create_time'], name='idx_order_user_time'. PDM only - indexes are a physical concept and a CDM/LDM is rejected. 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>",
      "columns": "<columns>"
    },
    "name": "create_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
uniqueNo
columnsYes
commentNo
dry_runNo
model_idYes
table_refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/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 disclose meaningful traits: the three index modes, the PDM-only rejection rule, and dry_run support for previewing. It omits behavior on duplicates/name collisions, permission requirements, and what dry_run actually returns, which are significant gaps for a mutation tool with zero annotation coverage.

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?

Three short sentences with the core purpose front-loaded and the example placed immediately after the column/name mention. "Supports dry_run" is a terse fragment but it earns its place by surfacing a safety-relevant option; nothing is redundant.

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

Completeness3/5

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

For a 7-parameter mutation tool with no annotations, no output schema, and 0% schema coverage, the description covers the important conceptual constraints but leaves the agent guessing on two required parameters (model_id, table_ref) and on failure behavior. It is adequate but not complete.

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% across 7 parameters, so the description must compensate and only partially does: it clarifies the columns format via example (['user_id','create_time']), implies the name parameter's format via example, implies unique from the index-mode list, and flags dry_run. The required model_id and table_ref parameters, plus comment, get no explanation at all, leaving half the surface 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 an index on a table") and enumerates the flavors (normal, unique, composite), which is clearly distinct from delete_index/get_index/update_index and from create_column/create_table. It stops short of explicitly differentiating itself from a sibling or noting why one would pick it over those, keeping it just under top marks.

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 states a concrete precondition: only PDM models are valid and CDM/LDM will be rejected, which is exactly the kind of routing rule an agent needs before invoking it. It does not compare against alternatives or say when to skip index creation (e.g., when one already exists), so not a 5.

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