Skip to main content
Glama

mssql_list_schemas

Read-onlyIdempotent

Lists user schemas in the current SQL Server database for a specified connection ID, returning results in CSV format.

Instructions

Lists user schemas 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_schemas"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 establish readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuine context beyond them: only user schemas are returned (system schemas excluded), the scope is the current database rather than the whole server, and the output is CSV-formatted. It stops short of covering result columns or behavior on an unknown connectionId.

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 front-loaded sentence with no filler, placing the resource first and the connection and output format after. Nothing in it could be removed without losing information.

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-parameter read-only listing tool with no output schema, the description covers scope, schema filtering, and output format (CSV). Only edge behavior for an invalid or expired connectionId is left unstated, a minor gap.

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 connectionId is documented as coming from mssql_connect, so the schema does the heavy lifting. The description's phrase 'for the given connectionId' only echoes that and adds no format or validation detail beyond it, which is the baseline-3 case.

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 (Lists) and resource (user schemas) scoped to the current database for a given connectionId. The resource is distinct from siblings such as mssql_list_tables or mssql_list_databases, so an agent can pick it without opening the schema, though the description never names those alternatives.

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 it should call this when it needs schema names under an existing connection. There is no explicit statement of preconditions (e.g., a live connection established via mssql_connect) nor any exclusion pointing to a different listing tool.

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