Skip to main content
Glama

mssql_list_views

Read-onlyIdempotent

Lists user views in the current SQL Server database for a given connection ID, with an optional schema filter, returning results in CSV format.

Instructions

Lists user views 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_views"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaNoOptional schema name filter.
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 cover the safety profile (readOnlyHint, idempotentHint), so the description's added value is the CSV output format, which is meaningful for an agent that must parse the result and is not available anywhere else (no output schema). It still omits whether system views are excluded, ordering, and size/pagination behavior for large catalogs.

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 that states resource, scope, required input, and output format with no redundant or filler wording.

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 two-parameter read-only listing tool with full schema coverage and no output schema, the description covers purpose, scope, and result format adequately. Minor gaps remain around what counts as a "user view" and how results are ordered or truncated, but nothing essential to invoking it is missing.

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%, with both parameters documented inline (schema as an optional filter, connectionId as returned by mssql_connect). The description adds no syntax, default, or matching semantics (e.g., exact vs pattern match, null meaning all schemas) beyond the schema, 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 gives a specific verb and resource ("Lists user views"), scopes it ("in the current database"), and names the required identifier ("for the given connectionId"). It also states the output encoding (CSV). It does not explicitly contrast itself with mssql_list_tables or mssql_list_functions, but the resource noun is distinct enough for an agent to route correctly.

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 agent can infer this is the right tool when it needs view metadata for an already-open connection. There is no statement of when to prefer it over a general query tool like mssql_run_query, no mention that a connection must exist first (though the connectionId reference hints at it), and no exclusions.

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