Skip to main content
Glama

security_mysql_check

Read-only

MySQL / MariaDB config audit — Offline security audit of a MySQL or MariaDB option file (my.cnf, mysqld.cnf, server.cnf): skip-grant-tables, bind-address exposure, require_secure_transport, TLS 1.0/1.1 and weak ciphers, local_infile (server and client), empty secure_file_priv, allow-suspicious-udfs, log_raw, running as root, old/native password hashing, symbolic-links, general_log, validate_password policy, X Protocol bind, skip_name_resolve, sql_mode, max_connect_errors, plaintext passwords in [client] sections (never echoed), duplicate keys (last wins). Returns PASS / REVIEW / FIX BEFORE DEPLOY / BLOCK, score, grade, findings with line numbers and fixes, effective server settings and a hardened example. Params: text= (config contents) or url= (raw or GitHub blob URL). Example: /v1/security/mysql-check?url=https://raw.githubusercontent.com/org/repo/main/my.cnf Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_mysql_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes[mysqld] bind-address=0.0.0.0 local_infile=1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "[mysqld]\nbind-address=0.0.0.0\nlocal_infile=1",
      +  "type": "string"
      +}
    • removedInput schema / properties / url
      Removed value: -{
      -  "description": "https://raw.githubusercontent.com/org/repo/main/my.cnf",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "url"
      -]New value: +[
      +  "text"
      +]
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly, non-destructive, open-world), it discloses concrete behavior: verdict tiers (PASS / REVIEW / FIX BEFORE DEPLOY / BLOCK), score and grade, findings with line numbers and suggested fixes, effective server settings, a hardened example, and explicit redaction ('plaintext passwords in [client] sections (never echoed)'). It even states the cost model ($0.006 USDC via x402), which is meaningful pre-invocation context.

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?

Purpose is front-loaded in the first clause, and the long list of audited directives earns its length by letting an agent match specific user concerns (e.g. skip-grant-tables, local_infile). The trailing price line is a minor appendage but not disruptive.

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 well described despite the absence of an output schema, and secret-handling behavior is covered. However, the phantom `url` parameter means the invocation contract described in prose does not match the actual schema, leaving the agent with an incorrect picture of how to call the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description introduces a `url=` parameter ('raw or GitHub blob URL') that does not exist in the schema, and frames input as 'text= (config contents) or url=', while the schema has a single required `text` property. An agent reading the description may attempt a url-only call that fails validation, so the prose actively misleads rather than clarifying the one real parameter.

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?

States a specific verb and resource ('Offline security audit of a MySQL or MariaDB option file (my.cnf, mysqld.cnf, server.cnf)') and enumerates the exact misconfigurations it detects. Among siblings like security_pghba_check, security_redis_check, and security_nginx_check, an agent can unambiguously identify this as the MySQL/MariaDB config auditor without opening any schema.

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 framing as an *offline* audit of a config file makes the use context clear: you have option-file contents or a URL to a config, not a live database. It does not name when-not to use it or point to an alternative sibling, but the resource specificity leaves little ambiguity.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources