Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_ag_status

Retrieves Always On Availability Group status and health from a SQL Server instance to monitor availability health and troubleshoot failover issues.

Instructions

Get Always On Availability Group status and health

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": "get_ag_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverNoSQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses little beyond the read intent implied by 'Get'. It does not say what happens on a server without Always On enabled (error vs empty result), whether the call is cheap or potentially slow, or what the response contains.

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 zero filler or redundancy. It is efficient, though so terse that it omits useful detail rather than wasting words.

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?

For a tool with no annotations and no output schema, the description should at minimum sketch what 'status and health' comprises (replica roles, synchronization state, health verdicts) or note failure modes on non-AG servers. As written, an agent can call it but cannot anticipate or interpret the result.

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 the sole 'server' parameter fully documented including format examples and the default-instance fallback, so the baseline of 3 applies. The description adds no additional meaning about the parameter, but nothing is missing from the schema.

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 uses a specific verb ('Get') and a precise resource ('Always On Availability Group status and health'), so an agent knows exactly what data class is returned. It does not explicitly distinguish itself from adjacent siblings such as get_replica_states or get_cluster_status, leaving some ambiguity about overlap.

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 guidance on when to choose this tool over get_replica_states or get_cluster_status, and no mention of preconditions such as the server needing an AG configured. The agent must infer usage from the resource name alone.

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