Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Backup MySQL Database (mysqldump)

mysql_backup

Exports a specified MySQL database to a local .sql backup file using mysqldump, enabling reliable data backup and recovery.

Instructions

使用 mysqldump 将指定数据库导出备份为本地 .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": {
      "database": "<database>",
      "outputPath": "<outputPath>"
    },
    "name": "mysql_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNo连接配置档案名
databaseYes要导出的数据库名称
outputPathYes导出的 .sql 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does reveal the key behavior that this shells out to mysqldump and writes a .sql file to the local filesystem (a side effect), but it omits overwrite semantics for an existing outputPath, permission/credential requirements, and failure behavior.

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?

A single front-loaded sentence with no filler, stating mechanism, target, and result in order. It is appropriately sized, though it is terse enough that a little more behavioral content could have been afforded.

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?

No output schema, so the agent would benefit from knowing what a successful call returns (file path, byte count, dump log) and how large dumps or long runtimes are handled. For a simple three-parameter tool the definition is minimally adequate but leaves these gaps.

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 all three parameters (profile, database, outputPath) are already documented in the schema. The description only restates database and output-file concepts, adding no syntax, format, or default details beyond the structured fields, so 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?

States a specific verb and resource (export/back up the specified database) plus the mechanism (mysqldump) and the output artifact (a local .sql file). That is enough to distinguish it from query-oriented siblings like mysql_query, though it never names them.

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?

Intended usage is implied by the purpose — back up a database rather than query it — but there is no explicit when-to-use/when-not guidance, no mention of prerequisites (a valid profile, disk space), and no comparison against alternatives such as running a query to dump data.

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