Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_connection_info

Retrieve active MySQL connections and process details, including user, host, database, duration, state, and current operations, to monitor sessions and diagnose connection issues.

Instructions

[Tool Purpose]: Get current connection and process information

[Exact Functionality]:

  • Show active connections with detailed process information

  • Display connection duration, state, and current operations

  • Include user, host, and database context for each connection

  • Filter out system processes for clarity

[Required Use Cases]:

  • When user requests "connection info", "active processes", "session details"

  • When monitoring database activity and user sessions

  • When diagnosing connection issues

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

Input Schema

NameRequiredDescriptionDefault
database_nameNoDatabase name to connect to (uses default if omitted)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose real behavior: system processes are filtered out, and each entry includes duration, state, current operation, and user/host/database context. It omits any statement about permissions or visibility limits, and the read-only nature is only implied by "Get"/"Show" rather than stated.

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?

Content is front-loaded and bullet-structured, so an agent can scan to the use cases quickly. The bracketed pseudo-headers ("[Tool Purpose]", "[Exact Functionality]", "[Required Use Cases]") are boilerplate that consume space without adding information, and the functionality bullets partly restate the opening line.

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

Completeness4/5

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

The tool is simple (one optional param, read-only intent, output schema present), so the description need not explain return shape. It covers purpose, triggers, and the system-process filtering behavior, which is the main non-obvious trait. The remaining gap is disambiguation from the closely named sibling get_active_connections.

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?

The single parameter database_name has 100% schema description coverage, so the schema already explains that omitting it uses the default. The description adds nothing about the parameter — its mention of "database context" refers to per-connection output fields, not to the input selector. 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?

The description gives a concrete verb and resource ("Get current connection and process information") and enumerates the content returned: duration, state, current operations, user, host, database. It does not distinguish itself from the sibling get_active_connections, whose name suggests substantial overlap, so an agent cannot fully resolve which to call from the text alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Three explicit use cases are provided (user asks for "connection info"/"active processes"/"session details", activity monitoring, diagnosing connection issues), which is stronger than implied guidance. It stops short of a 5 because no exclusions or named alternatives are given — nothing tells the agent when to prefer get_active_connections or get_user_list instead.

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