Skip to main content
Glama

generate_ddl

Generate SQL DDL from a PowerDesigner PDM to a .sql file, returning SQL text and file info. Uses the model's native DBMS, with clear errors for mismatched DBMS requests.

Instructions

Generate SQL DDL for a PDM using PowerDesigner's native database generation for the model's DBMS. output_path: target .sql file (created if the directory exists). Returns the SQL text plus file info. The model's own DBMS is used; requesting a different dbms returns a clear error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbmsNo
model_idYes
output_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 the file creation side effect, the directory prerequisite, the DBMS restriction/error behavior, and the return value. It stops short of explaining overwrite behavior or what exactly 'file info' contains, but it is still strong.

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?

Three concise sentences with no filler. The main purpose is front-loaded, followed by output_path semantics, return value, and the DBMS constraint. Every sentence adds value.

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?

Given no annotations and no output schema, the description covers the essential inputs, output, file behavior, and failure mode well enough for an agent to invoke it. Minor gaps remain around overwrite semantics and the contents of the returned file info, but nothing blocks correct usage.

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 for the schema's silence. It explains output_path and clarifies how the dbms parameter behaves, but model_id is left implicit and no value formats or defaults for dbms are described. Partial compensation.

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?

The description opens with a specific verb and resource: 'Generate SQL DDL for a PDM'. It also names the method ('PowerDesigner's native database generation') and the output target, making the tool's function easy to distinguish from schema-inspection and table-editing siblings.

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 description gives a clear constraint: the model's own DBMS is used and requesting a different dbms returns an error. However, it never explicitly says when to choose this tool over alternatives like create_database_schema or apply_schema_patch, so usage guidance is implied rather than fully stated.

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