Skip to main content
Glama
SQL Server MCP Server

SQL Server MCP Server

by fanzhenddz

execute

Run INSERT, UPDATE, or DELETE SQL queries against SQL Server databases, optionally with parameters, to modify data.

Instructions

Execute an INSERT, UPDATE, or DELETE query

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": {
      "sql": "<sql>"
    },
    "name": "execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL query (INSERT, UPDATE, DELETE)
paramsNoQuery parameters (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses only that the statement type is a write. It says nothing about whether the change is committed, whether multi-row or transactional behavior applies, what happens on constraint violations, or whether it returns an affected-row count. The one thing it does add beyond the name is confirming this is the mutating path, which prevents the worst misselection but not much else.

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 short sentence with the operative constraint front-loaded and no wasted words. It is terse to the point of omitting needed detail, but nothing present is filler.

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 an unannotated destructive-capable mutation tool with no output schema, the description should state commit semantics, permissions, and the return shape (e.g. affected row count). None of that is covered, leaving the agent unable to predict the consequences of a call.

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%, so both sql and params are already documented, and the description only restates the sql constraint (INSERT/UPDATE/DELETE). It adds no meaning about parameter binding syntax, placeholder format, or whether params is positional. Baseline 3 applies when the schema does the work.

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 (Execute) plus the resource class (INSERT, UPDATE, or DELETE query), which distinguishes it from read-path siblings like query and explain. It does not name any sibling explicitly, so the differentiation is inferred from the SQL verb list rather than stated.

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 mention of when to prefer this over query or explain, and no prerequisites such as required permissions or write-access constraints. An agent must infer from the description alone that this is the mutation path and that reads belong elsewhere.

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