Skip to main content
Glama

das__ChangeTransactionSwitchStatus

Enable or disable the historical transaction switch for a MySQL instance by setting its switch status; full SQL or slow SQL must be enabled first.

Instructions

[DAS] 开启/关闭历史事务开关,仅支持MySQL引擎,并且依赖开启全量SQL或者慢SQL功能

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": {
      "datastore_type": "<datastore_type>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "switch_status": "<switch_status>"
    },
    "name": "das__ChangeTransactionSwitchStatus"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID
instance_idYes实例ID
switch_statusYes开关状态
datastore_typeYes数据库类型。仅支持MySQL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose that this is a state-mutating toggle with an engine restriction and an external feature dependency, which is valuable, but it omits whether the change is reversible, takes effect immediately, requires elevated permissions, or what happens when the dependency is not met.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single compact sentence that front-loads the action and appends the two hard constraints. No filler, no restatement of the name.

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 four-parameter toggle with fully documented params and no output schema, the definition covers purpose and prerequisites adequately. It still leaves the agent guessing about effect timing and failure behavior when the SQL-collection dependency is off.

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 both enums are already documented, so the schema does the heavy lifting. The description only reinforces the MySQL-only constraint on datastore_type and adds no meaning about switch_status or the path identifiers.

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 pair (enable/disable) and a specific resource (historical transaction switch), plus an engine restriction. This clearly distinguishes it from the read-only sibling das__ShowTransactionSwitchStatus, though that sibling is not named explicitly.

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?

Gives concrete preconditions for use: MySQL engine only, and the full-SQL or slow-SQL feature must already be enabled. It does not explicitly say when to prefer this over the Show variant or what to do if the prerequisite is unmet, so it stops short of full routing guidance.

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

Deploy Server

Other Tools