Skip to main content
Glama
MSSQL Database MCP Server

MSSQL Database MCP Server

by dcpurnell

list_table

Lists tables in an MSSQL database, optionally filtered by schema, returning fully qualified schema.table names.

Instructions

Lists tables in an MSSQL Database, or list tables in specific schemas. Returns fully qualified table names (schema.table).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
parametersNoSchemas to filter by (optional). If not provided, returns tables from all schemas.

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 provided, so the description carries the full disclosure burden. It does add one useful behavioral fact beyond the schema — results are fully qualified schema.table names — and listing is inherently read-only, but it says nothing about ordering, whether views/system catalogs are included, result-size limits, or required permissions.

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 short sentences, front-loaded with the core purpose and no filler. Minor awkwardness from the mixed construction "Lists tables ... or list tables", which could be tightened to a single clause.

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 one-optional-parameter listing tool with no output schema, the description covers what it does and what it returns, which is most of what an agent needs. The remaining gap is the execution context — which database/connection is queried — but that may be implicit in the server binding.

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 schema already states that omitting the array returns all schemas. The description repeats the optional-schema filtering idea without adding format, matching rules, or wildcard behavior, so the baseline of 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?

The description states a specific verb and resource ("Lists tables") plus the filtering dimension (schemas) and the return shape (fully qualified schema.table). It is unambiguous against siblings like describe_table and read_data, though it never names them, so differentiation comes from the reader's inference rather than the text.

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 implied by the phrasing: call it to enumerate tables, optionally scoped to one or more schemas. There is no explicit 'use this instead of describe_table when...' guidance and no stated prerequisites (e.g., which database/connection context is assumed).

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