Skip to main content
Glama
mysql2-mcp-server

mysql2-mcp-server

by jcxy

mysql_begin

Starts a MySQL transaction in direct-connection mode, optionally targeting a named environment, so you can group queries into an atomic unit.

Instructions

开始一个事务(仅直连模式支持)。可用环境: default(默认: default)

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": "mysql_begin"
  }
}

Input Schema

NameRequiredDescriptionDefault
environmentNo目标环境名。可用环境: default(默认: default)。未传时使用默认环境

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.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 disclosure burden. It usefully reveals the direct-connection-mode restriction, which is real behavioral information beyond the schema, but says nothing about transaction scope (connection/session bound), nested-begin behavior, isolation level, or what happens to an open transaction on disconnect.

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?

Two short sentences, front-loaded with the action and its key constraint. The second sentence duplicates schema content about the environment parameter, which is the only wasteful part.

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 one-parameter transaction-control tool with no output schema, the definition is minimally sufficient — the action and its mode restriction are covered. It omits lifecycle semantics (what a begun transaction covers and how it must be ended), which matters for a mutation-flavored operation with zero annotation coverage.

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 coverage is 100% and the single optional 'environment' parameter is fully documented in the schema, including the default and the available value. The description merely repeats that same environment text verbatim, adding no new meaning; baseline 3 applies.

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 names a specific verb and resource — beginning a transaction — so an agent knows exactly what the call does. It does not, however, explicitly position itself against the siblings mysql_commit and mysql_rollback, which would have made the transaction lifecycle unambiguous.

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?

It gives a concrete precondition in parentheses: only direct-connection mode is supported, which tells the agent when the call will not work. It stops short of stating the pairing rule (that a begin must be closed with commit or rollback), leaving that inference to the agent.

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