Skip to main content
Glama
SpringDamon

mcp-server-dmdb

by SpringDamon

查看表结构

dm_describe_table
Read-onlyIdempotent

Get a complete table structure including columns, keys, constraints, indexes, and comments before writing SQL to avoid guessing names or types. Optionally include DDL.

Instructions

返回一张表的完整结构:列定义(类型/长度/精度/可空/默认值)、主键、外键、唯一键、检查约束、索引及其包含的列、表注释与列注释,可选附带建表 DDL。写 SQL 之前调用它,避免猜列名和类型。注意:索引位置列在达梦里叫 COLUMN_POSITION,而约束位置列叫 POSITION,两者不同名。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerNo模式名。table 未带 schema 前缀时使用;不传则按当前用户可访问范围查找
tableYes表名,支持 "TABLE" 或 "SCHEMA.TABLE" 两种写法,不区分大小写
include_ddlNo是否额外调用 SP_TABLEDEF 取建表 DDL,默认 false
response_formatNo输出格式markdown

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.3

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered. The description adds valuable behavioral context: the optional DDL invocation and a DM-specific gotcha that index position columns are named COLUMN_POSITION while constraint position columns are named POSITION. This helps the agent correctly interpret results without needing to discover the quirk at runtime.

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 sentences with no fluff: the first lists the complete output scope, the second gives the usage timing, and the third surfaces a critical naming distinction. Each sentence earns its place and the most important information is front-loaded.

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?

There is no output schema, so the description correctly takes on the burden of explaining return values, which it does thoroughly by enumerating all structural components. It also includes the optional DDL behavior and the crucial column-name discrepancy warning, making it complete for an agent to invoke and interpret results correctly.

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 100%, and the input schema fully describes all four parameters. The description adds only a small overlap by mentioning optional DDL, which duplicates include_ddl. Per the calibration baseline, 3 is appropriate when the schema does the heavy lifting.

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: '返回一张表的完整结构' and enumerates exactly what is returned (columns, keys, constraints, indexes, comments, optional DDL). It also distinguishes itself by explicitly stating it should be used before writing SQL to avoid guessing column names/types, clearly separating it from sibling tools like dm_query and dm_table_sample.

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?

The phrase '写 SQL 之前调用它,避免猜列名和类型' provides clear, explicit context for when to use this tool. However, it does not name alternatives or state when not to use it, so it falls short of a 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SpringDamon/mcp-server-dmdb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server