Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_indexes

Retrieve index information for SQL Server tables to inspect index structure and support schema discovery or performance troubleshooting.

Instructions

Get index information for tables

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": {
      "database": "<database>"
    },
    "name": "get_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNoFilter by table name
schemaNoSchema namedbo
serverNoSQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified.
databaseYesDatabase name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

C2.6/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 behavioral burden and largely drops it. "Get" implies a read, but nothing states whether the call is read-only, what permissions or server context are required, whether a missing table returns all tables or an error, or how large a result set to expect.

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?

One short, front-loaded sentence with zero filler or redundancy. Its brevity is efficient rather than padded, though it shades into under-specification rather than crispness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, one required, no annotations and no output schema, the description needed to say what "index information" contains, since the return shape is documented nowhere else. As written, the agent knows the topic but not the payload.

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%, including format examples for the server parameter, so the schema already does the semantic work. The description adds nothing beyond what already exists, but baseline 3 applies when schema descriptions are complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a concrete verb and resource ("Get index information for tables"), so the agent knows this returns index metadata rather than index usage. However, "information" is vague about what is returned (definitions, columns, key order?), and with a sibling named get_index_usage the boundary between the two is not drawn anywhere in 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 Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no mention of the natural alternative get_index_usage. The agent must infer from the name alone whether this tool returns index definitions versus usage statistics.

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