Skip to main content
Glama
sqlite-mcp-server

sqlite-mcp-server

by mismi

Insert Row

sqlite_insert_row

Inserts one row into a SQLite table, validates column names against the schema, and returns the stored row with any auto-assigned ID.

Instructions

Insert one row into a table and return the row as SQLite stored it.

Prefer this over hand-written INSERT SQL: column names are validated against the table, so typos come back as a clear error. Omit auto-increment primary keys and let SQLite assign them.

Example: {"table": "books", "values": {"title": "Dune", "author_id": 3, "price": 9.99}} -> the inserted row with its new id. Call sqlite_describe_table first when you are unsure of column names.

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>",
      "values": "<values>"
    },
    "name": "sqlite_insert_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable to insert into
valuesYesColumn values keyed by column name, e.g. {"title": "Dune", "price": 9.99}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false. The description adds genuine context beyond them: column names are validated and typos surface as clear errors, the inserted row is returned with its new id, and auto-increment keys should be omitted. It stops short of saying that repeated calls create duplicate rows, which is the practical consequence of idempotentHint=false.

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?

Front-loaded with the core action and return behavior, then the rationale, then a concrete example, then the fallback prep step. Every sentence carries a distinct instruction with no filler.

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

Completeness5/5

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

With no output schema, the description takes on the burden of describing the return value and does so ("the inserted row with its new id"). For a two-parameter insert with a nested values object, the validation behavior, key-omission rule, example, and describe-table fallback together cover what an agent needs to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description exceeds it by explaining that values are keyed by column name and that the primary key should be omitted so SQLite assigns it. The worked example {"table": "books", "values": {...}} illustrates the nested object shape in a way the schema alone does not.

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

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Insert one row into a table and return the row as SQLite stored it." The scope is narrowed to a single row, which alone distinguishes it from the batch/arbitrary-SQL sibling sqlite_execute, and the return behavior is stated up front.

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 clear routing guidance: "Prefer this over hand-written INSERT SQL" plus a prerequisite step, "Call sqlite_describe_table first when you are unsure of column names." It does not address when to fall back to sqlite_execute (e.g. multi-row or bulk inserts), so it stops short of explicit when-not guidance.

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