Skip to main content
Glama
SQL Server MCP Server

SQL Server MCP Server

by fanzhenddz

list_tables

Lists all tables in a SQL Server database so you can identify available tables for schema inspection or query building.

Instructions

List all tables in the database

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_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'List' implies a read-only operation, but it does not say whether views are included, whether permissions or an active connection are required, whether results are truncated or paginated, or what the caller receives back. For a tool with zero annotation coverage this leaves meaningful behavioral gaps.

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?

A single front-loaded sentence with no wasted words, which is the right shape for this tool. It is arguably terse to the point of under-specification, but nothing in it is padding.

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?

With no parameters, no output schema, and no annotations, the description is close to adequate but omits the two things an agent would most want: which database context is used and what form the returned table listing takes. It is minimally sufficient rather than complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes no parameters at all, so the schema cannot document anything the description would need to compensate for. Baseline 4 applies; the single phrase 'in the database' hints at the implied scope.

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 ('List all tables') scoped to 'the database', so an agent knows exactly what this returns. It does not, however, differentiate itself from siblings like describe_table or query, leaving the agent to infer that this is a discovery step rather than a querying one.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no mention of a prerequisite such as connecting to or selecting a database via connect_db, and no statement of when a sibling like describe_table would be the better choice. Usage is only implied by the tool's name and the word 'tables'.

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