Skip to main content
Glama
MSSQL Database MCP Server

MSSQL Database MCP Server

by dcpurnell

describe_table

Retrieve column names, data types, and schema details for a specified MSSQL table to understand its structure before writing queries; optionally target a schema other than dbo.

Instructions

Describes the schema (columns and types) of a specified MSSQL Database table. Optionally specify a schema name (defaults to 'dbo').

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": {
      "tableName": "<tableName>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNameYesName of the table to describe
schemaNameNoName of the schema (optional, defaults to 'dbo')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It usefully discloses the return content (column names and types), but says nothing about read-only safety, permission requirements, or what happens when the table/schema does not exist, which matters for an introspection call against a database.

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?

Two compact sentences with the core purpose front-loaded and the optional parameter detail trailing it. No filler, though the parenthetical about columns and types could have been folded in more tightly.

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?

For a two-parameter, read-only introspection tool with no output schema, the definition is largely sufficient: it names the resource, the returned data shape, and the schema default. Missing only edge-case behavior (nonexistent table, non-table objects) to be fully 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 100%, so the input schema already documents both tableName and schemaName. The description restates the 'dbo' default for schemaName but adds no new meaning such as accepted formats or whether other object types are visible; baseline 3 applies.

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 and resource (describes the schema of an MSSQL table) and even specifies what is returned — columns and types. It does not explicitly contrast with sibling tools like list_table or read_data, so it falls short of the top mark, but the purpose is unambiguous on its own.

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?

Usage is only implied: an agent can infer the tool is for inspecting table structure, and the default-schema note gives a hint about how to call it. There is no explicit when-to-use versus when-to-use-an-alternative guidance and no prerequisites stated, leaving the agent to infer selection among siblings.

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

Deploy Server

Other Tools