Skip to main content
Glama

mssql_list_tables

Read-onlyIdempotent

Lists user tables and approximate row counts in the current database for a given connection ID, with optional schema filtering, and returns results in CSV format.

Instructions

Lists user tables and approximate row counts in the current database for the given connectionId in CSV format.

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": {
      "connectionId": "<connectionId>"
    },
    "name": "mssql_list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaNoOptional schema name filter (e.g. 'dbo').
connectionIdYesThe connectionId returned by mssql_connect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuinely useful context beyond them: results are limited to user tables (system tables excluded), row counts are 'approximate' (so they should not be trusted as exact), the listing is scoped to the current database, and output is CSV.

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?

A single well-formed sentence that front-loads the resource and scope and ends with the output format. Every clause carries information; nothing is redundant or padded.

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 simple read-only listing tool with full schema coverage and annotations covering safety, the description supplies what is missing structurally (user-table scope, approximate counts, CSV format). Minor gaps remain, such as ordering and whether large databases are truncated, but nothing critical to correct invocation is absent.

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 both parameters (connectionId and the optional schema filter) are already documented in the schema. The description adds only the notion of 'current database' scope and does not elaborate on the schema filter's 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?

States a specific verb and resource ('Lists user tables') plus the scope ('in the current database') and the return format ('CSV'), which separates it implicitly from mssql_list_views, mssql_list_schemas, and mssql_list_databases. It does not name a sibling explicitly, so it falls just short of a 5.

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: the phrase 'for the given connectionId' signals that a connection must exist first, and the parameter description ties it to mssql_connect. There is no explicit when-to-use or when-not-to-use guidance, and no mention of the alternative list tools for views, schemas, or functions.

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