Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_running_jobs

Retrieves currently executing SQL Server Agent jobs to help monitor active job activity and troubleshoot issues.

Instructions

Get currently executing SQL Server Agent jobs

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_running_jobs"
  }
}

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

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. "Currently executing" usefully signals a live snapshot rather than history, but it says nothing about required permissions (SQL Agent/msdb access), whether the call is safe/read-only, 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 no filler or redundancy. It is efficient, though it is minimal enough that the brevity comes at the cost of context rather than being purely a virtue.

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

Completeness3/5

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

For a simple single-parameter read tool with no output schema, the definition is minimally adequate. It leaves open what fields are returned (job name, step, duration, status) and what happens when the default instance is unavailable.

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?

Only one optional parameter exists and its schema description already covers the instance format and default behavior at 100% coverage. The description adds nothing beyond the schema, which is acceptable given the baseline for fully documented schemas.

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+resource ("Get ... SQL Server Agent jobs") and adds a scoping qualifier ("currently executing") that distinguishes it from history-oriented siblings like get_job_history and list_jobs. It does not explicitly name an alternative, but the scope is unambiguous.

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 prerequisites, and no mention of when to prefer get_job_history or list_jobs instead. The agent must infer the distinction from the tool name and the word "currently" alone.

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