Skip to main content
Glama
mysql2-mcp-server

mysql2-mcp-server

by jcxy

mysql_rollback

Rolls back the current MySQL transaction, optionally for a named environment, undoing uncommitted changes when they should not be committed.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it adds nothing beyond the tool name: it does not say that uncommitted changes are discarded, what happens if no transaction is open (error vs no-op), or whether the connection/transaction state is reset.

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 action is front-loaded in one short sentence, which is good, but the second sentence duplicates the schema's parameter text almost word for word and therefore does not earn its place.

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 zero-required-parameter, no-output-schema transaction tool, the description is minimally sufficient to invoke it. It is still missing the failure mode (no active transaction) and the post-call state, which an agent would need to use it safely.

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 optional 'environment' parameter is fully documented in the schema. The description merely repeats the same environment note verbatim, adding no routing or naming semantics beyond what the schema already states; 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 states a specific verb and resource: '回滚当前事务' (roll back the current transaction). The scope word 'current' makes it intrinsically distinguishable from mysql_begin/mysql_commit, but the description never names an alternative or explicitly frames the contrast, which keeps it short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to call this instead of mysql_commit when changes should be discarded, nor that an active transaction must already exist. Usage is only inferable from the verb itself.

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