Skip to main content
Glama
mysql2-mcp-server

mysql2-mcp-server

by jcxy

mysql_commit

Commits the current MySQL transaction for a specified or default environment, persisting changes and releasing transaction locks.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, yet it adds essentially nothing beyond the tool name: it does not state what happens if there is no active transaction, whether the commit is durable/immediate, whether it returns a result, or what errors look like. Only the environment default is disclosed, which is already parameter info.

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. The second sentence duplicates schema content, which is mild waste, but nothing is padded or buried.

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 simple one-optional-param tool with no output schema, the definition is adequate but thin: it omits preconditions (open transaction) and failure behavior, which matter for a transaction-control operation. The environment default handling is covered.

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% for the single optional environment parameter, and the description merely restates the identical environment text verbatim. Baseline 3 applies since the schema already documents the only parameter fully.

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 (commit) and resource (current transaction), and the action is inherently distinguishable from sibling mysql_rollback and mysql_begin. It stops short of explicitly naming the alternatives, but the operation is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase "当前事务" – an agent can infer it applies after a begin, but the description never states the precondition (an open transaction), nor when to choose commit over rollback. No explicit when/when-not guidance is given.

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