Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_user_list

Lists all MySQL users with host patterns, privileges, account status, authentication, password expiration, locking, SSL, and resource limits to support access audits and security management.

Instructions

[Tool Purpose]: List all MySQL users and their privileges

[Exact Functionality]:

  • Show all MySQL users with their host patterns

  • Display account status and authentication info

  • Show password expiration and locking status

  • Include SSL and resource limit information

[Required Use Cases]:

  • When user requests "user list", "MySQL users", "account info"

  • When managing user access and security

  • When auditing user accounts

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

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.7/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 burden. It implies a read-only listing and does disclose what information the results contain, but it says nothing about the privileges required to read user/privilege data, whether partial results are possible for unprivileged accounts, or any safety/permission caveats — meaningful gaps for a security-sensitive query.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose line is front-loaded and useful, but the bracketed scaffolding ("[Tool Purpose]", "[Exact Functionality]", "[Required Use Cases]") is heavy for such a simple tool, and the functionality bullets largely restate return fields that the output schema already supplies.

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?

Return values are covered by the existing output schema and the single parameter is fully described, so the definition is close to complete for a simple list tool. The remaining shortfall is behavioral: with zero annotations there is no statement of required permissions or read-only guarantees, which matters for a tool exposing account and privilege data.

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% and the sole parameter (database_name, optional, defaults to null) is fully documented in the schema itself. The description adds no connection/context semantics beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line states a specific verb and resource — "List all MySQL users and their privileges" — and the functionality bullets enumerate the exact fields surfaced (host patterns, account status, password expiration/lock status, SSL, resource limits). This makes it immediately distinguishable from sibling read tools such as get_database_list, get_table_list, and get_active_connections, which operate on different resources.

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?

The "Required Use Cases" block gives concrete trigger phrases ("user list", "MySQL users", "account info") plus two situational contexts: access/security management and account auditing. That is clear positive guidance, but there are no exclusions and no named alternative for adjacent needs (e.g., connection-level inspection belongs to get_active_connections or get_connection_info).

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