Skip to main content
Glama
MySQL CRUD MCP Server

MySQL CRUD MCP Server

by Nicolas-One

mysql_insert

Executes INSERT queries against MySQL databases to add new records, optionally using parameterized values for structured data insertion.

Instructions

执行 INSERT 查询。

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": {
      "query": "<query>"
    },
    "name": "mysql_insert"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
paramsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.4/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 behavioral burden and delivers almost nothing: it does not state that this is a mutating write, whether it requires write privileges, whether it is transactional/auto-committed, or whether duplicate-key or constraint errors surface as exceptions. The sole behavioral hint is that it performs an INSERT rather than a read.

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 single sentence contains no padding, but its brevity comes from omission rather than economy — there is no front-loaded detail to speak of. It is appropriately short for a trivial tool but under-specified for one performing database writes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating SQL tool with no annotations, no output schema, and undocumented parameters, the description would need to explain parameter binding, return values (e.g. affected rows / insert id), and failure modes. None of that is present, leaving the agent to guess on a high-risk write operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage on 2 parameters, the description must explain 'query' and 'params' and does not. It never mentions that 'params' exists for parameterized/bound values, what placeholder syntax the query expects (? vs %s), or the accepted parameter types — all of which the bare schema leaves ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/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 (INSERT 查询), which is enough to separate it from mysql_select/mysql_update/mysql_delete siblings. However, it is essentially a restatement of the tool name mysql_insert in Chinese, adding no scope, target table, or constraint information.

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 guidance on when to use this tool vs mysql_update, mysql_select, or mysql_delete, and no prerequisites (permissions, target table existence, transaction context). The only implicit signal is the word INSERT, which the agent can already infer from the name.

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