Skip to main content
Glama
SQL MCP Server

SQL MCP Server

by kK-2004

db_insert

Inserts a single row into an allowed database table. Use it to add records by specifying the target table and a row object of column values.

Instructions

Insert one row into an allowed table.

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": {
      "table": "<table>",
      "data": "<data>"
    },
    "name": "db_insert"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesRow object, e.g. {"name": "Tom", "age": 18}
tableYesTarget table name (must be allowed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 burden for a mutation tool. It discloses only that inserts are limited to one row and to whitelisted tables; it says nothing about permissions, what happens on constraint violation, whether the write is transactional, or whether the inserted row/ID is returned.

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, and the cardinality constraint arrives before the table constraint. It is tight, though the brevity reflects under-specification as much as economy.

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 write tool with no annotations and no output schema, an agent still lacks essential information: what a successful call returns, how failures surface, and how the allowed-table whitelist is discovered. The nested row object also goes unexplained beyond one example.

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 coverage is 100%, so both parameters are already documented, which sets the baseline at 3. The description does add the constraint that data must describe exactly one row rather than a batch, which is mildly useful beyond the schema's plain 'object' type.

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?

"Insert one row" gives a specific verb plus cardinality, and "allowed table" names the resource constraint. It is distinguishable from db_query and db_delete by the verb alone, though the description never explicitly contrasts with those siblings.

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 or when-not-to-use guidance, no mention of prerequisites such as db_connect or schema verification via db_describe_schema, and no stated alternative for bulk loads or upserts. An agent must infer the entire usage context from the tool name.

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