Skip to main content
Glama
Cyronius

claude-database-tools

by Cyronius

insert_data

Adds single or multiple records to MSSQL database tables using SQL INSERT statements with proper data formatting and type validation.

Instructions

Inserts data into an MSSQL Database table. Supports both single record insertion and multiple record insertion using standard SQL INSERT with VALUES clause. FORMAT EXAMPLES: Single Record Insert: { "tableName": "Users", "data": { "name": "John Doe", "email": "john@example.com", "age": 30, "isActive": true, "createdDate": "2023-01-15" } } Multiple Records Insert: { "tableName": "Users", "data": [ { "name": "John Doe", "email": "john@example.com", "age": 30, "isActive": true, "createdDate": "2023-01-15" }, { "name": "Jane Smith", "email": "jane@example.com", "age": 25, "isActive": false, "createdDate": "2023-01-16" } ] } GENERATED SQL FORMAT:

  • Single: INSERT INTO table (col1, col2) VALUES (@param1, @param2)

  • Multiple: INSERT INTO table (col1, col2) VALUES (@param1, @param2), (@param3, @param4), ... IMPORTANT RULES:

  • For single record: Use a single object for the 'data' field

  • For multiple records: Use an array of objects for the 'data' field

  • All objects in array must have identical column names

  • Column names must match the actual database table columns exactly

  • Values should match the expected data types (string, number, boolean, date)

  • Use proper date format for date columns (YYYY-MM-DD or ISO format)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNameYesName of the table to insert data into
dataYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does well by specifying the tool supports both single and multiple record insertion and provides important rules about data formatting and constraints. However, it doesn't mention critical behavioral aspects like transaction handling, error behavior, permission requirements, or whether the operation is idempotent - significant gaps for a database mutation tool.

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?

The description is well-structured with clear sections (FORMAT EXAMPLES, GENERATED SQL FORMAT, IMPORTANT RULES) and front-loads the core purpose. While comprehensive, some information could be more concise - the examples are quite detailed and the rules section is lengthy. Every sentence adds value, but the overall length might benefit from tighter editing.

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 database mutation tool with no annotations and no output schema, the description does a good job covering the insertion mechanics and data formatting. However, it lacks critical context about what happens after insertion - whether it returns the inserted records, generated IDs, row counts, or error information. The absence of output information and permission/transaction context leaves significant gaps for agent understanding.

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

Parameters5/5

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

With only 50% schema description coverage (only 'tableName' has a description in the schema), the description compensates excellently. It provides comprehensive examples for both single and multiple record insertion, explains the 'data' parameter's dual nature, specifies format rules, and adds crucial semantic information about column name matching, data types, and date formatting that goes far beyond the minimal schema documentation.

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?

The description clearly states the tool 'inserts data into an MSSQL Database table' with specific verbs ('inserts') and resources ('MSSQL Database table'). It distinguishes from siblings like 'update_data', 'delete_data', and 'read_data' by specifying insertion functionality. The mention of 'standard SQL INSERT with VALUES clause' further clarifies the technical approach.

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?

The description provides clear context about when to use this tool (for inserting data into tables) and implicitly distinguishes it from alternatives like 'update_data' for modifications or 'read_data' for queries. However, it doesn't explicitly state when NOT to use it or name specific alternative tools for related operations like bulk loading or upserts.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cyronius/claude-database-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server