Skip to main content
Glama
dataplat

dbatools-mcp-server

Official
by dataplat

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PWSH_EXENoPath to PowerShell executablepwsh
MAX_OUTPUT_ROWSNoMaximum rows returned per command execution100
DBATOOLS_SAFE_MODENoWhen 'true', non-readonly commands require confirm: truetrue
COMMAND_TIMEOUT_SECONDSNoSeconds before PowerShell process is killed60

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_dbatools_commandsA

Search and list dbatools commands. Filter by verb, noun, keyword, or risk level.

get_dbatools_command_helpA

Get the full normalized help for a specific dbatools command, including parameters and examples sourced from comment-based help.

invoke_dbatools_commandA

Execute a dbatools command via PowerShell and return structured JSON output.

SAFETY: For any destructive or change command (Remove, Drop, Disable, Reset, etc.), always explain the consequences to the user and ask for explicit confirmation before running. Only proceed with confirm:true if the user has clearly confirmed their intent. Respect DBATOOLS_SAFE_MODE: never bypass safety checks. For any command that modifies or deletes data, double-check with the user before proceeding. Show the exact command and output for transparency. Non-readonly commands require confirm:true when safe mode is enabled.

check_dbatools_environmentA

Verify that PowerShell and the dbatools module are installed and report the help-index status.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a distinct phase of the workflow: environment verification, command discovery, documentation lookup, and execution. list_dbatools_commands (search) versus get_dbatools_command_help (full help for one known command) are clearly separated by their descriptions.

Naming Consistency5/5

All four tools follow the same snake_case verb_dbatools_noun pattern: get_, list_, invoke_, check_. The domain prefix is applied uniformly, making the set predictable.

Tool Count4/5

Four tools cover the essential wrapper surface (discover, inspect, run, verify) without redundancy. It is on the lean side, but for a single-module gateway that is reasonable rather than a mismatch.

Completeness4/5

Discovery, help, execution, and environment validation give a complete basic lifecycle with no dead ends. Minor gaps exist, such as refreshing/rebuilding the help index or batch invocation, but agents can work around them via invoke_dbatools_command.

Maintenance

ActivityMaintained
ResponsivenessNo issues