Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_current_database_info

Retrieve current or specified MySQL database details, including name, character set, collation, size, table count, creation time, and storage engine distribution. Use it to inspect database context.

Instructions

[Tool Purpose]: Get information about the currently connected or specified database

[Exact Functionality]:

  • Show database name, character set, and collation

  • Display database size and table count

  • Show creation time if available

  • Include storage engine distribution

[Required Use Cases]:

  • When user requests "current database", "database info", "database details"

  • When getting context about the working database

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

Input Schema

NameRequiredDescriptionDefault
database_nameNoDatabase name to analyze (uses current database if omitted, shows available databases if none)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose the scope of returned data, which is useful, but it never states that the operation is read-only, whether any privileges are required, or what happens for the 'shows available databases' fallback path. The disclosure of content is solid; disclosure of behavior and side effects is absent.

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 scannable, with the purpose stated first and functionality bulleted. The bracketed section labels ('[Tool Purpose]', '[Exact Functionality]', '[Required Use Cases]') are boilerplate overhead that consume space without adding meaning, and the functionality list partially duplicates the return values already captured by the output schema.

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?

For a single-optional-parameter read tool with an output schema present, the description is largely sufficient — return shape needn't be re-explained, and call semantics are clear. The remaining gap is the absence of read-only/privilege framing and any hint that the tool overlaps with sibling size/list tools.

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 single parameter is already documented in the schema, including the omit-behavior. The description adds only the phrase 'currently connected or specified database,' which lightly reinforces the same semantics — correct baseline of 3 with no meaningful value added beyond structured data.

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 and resource ('Get information about the currently connected or specified database') and enumerates exactly what is returned: name, character set, collation, size, table count, creation time, storage engine distribution. It does not differentiate itself from siblings like get_database_size_info or get_database_list, and the size/table-count listing directly overlaps with get_database_size_info, leaving the boundary ambiguous.

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?

Provides explicit trigger phrases ('current database', 'database info', 'database details') and a context scenario, which is stronger than most read tools. However, it offers no exclusions or routing — nothing says when to prefer get_database_size_info, get_database_list, or get_server_info instead, and the overlap makes that guidance genuinely needed.

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