Skip to main content
Glama

insert_row

Insert structured data into a PostgreSQL table with optional column return. Specify table name, column-value pairs, and choose which columns to retrieve after insertion.

Instructions

Insert a single row into a PostgreSQL table.

Use this tool when you need one explicit insert with structured values.

  • table_name: table target, optionally schema-qualified

  • row: object mapping column names to values

  • returning_columns: optional list of columns to return via RETURNING

Example:

  • table_name: sales.orders

  • row: { "customer_id": 10, "status": "new" }

  • returning_columns: ["order_id"]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYes
rowYes
returning_columnsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that this is an insert operation (implying mutation/write) and mentions the RETURNING clause behavior. However, it doesn't cover important behavioral aspects like transaction handling, error conditions, permission requirements, or whether it's idempotent. For a database mutation tool with zero annotation coverage, this leaves significant gaps.

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?

The description is efficiently structured with a clear purpose statement, usage guideline, parameter explanations, and a concrete example. Every sentence serves a distinct purpose with zero redundancy. The information is front-loaded with the most important details first, making it easy to parse.

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

Completeness4/5

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

Given this is a database mutation tool with no annotations but with output schema present, the description does well on purpose, parameters, and usage. However, it lacks behavioral context about transactions, errors, and permissions that would be important for safe operation. The output schema existence reduces the need to describe return values, but more behavioral disclosure would improve completeness.

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 0% schema description coverage, the description fully compensates by explaining all three parameters clearly. It defines 'table_name' as 'table target, optionally schema-qualified', 'row' as 'object mapping column names to values', and 'returning_columns' as 'optional list of columns to return via RETURNING'. The example further clarifies usage. This adds substantial value beyond the bare schema.

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 specific action ('Insert a single row'), target resource ('PostgreSQL table'), and scope ('one explicit insert with structured values'). It distinguishes itself from sibling tools like 'insert_rows' by specifying single-row insertion. The verb+resource combination is precise and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool: 'when you need one explicit insert with structured values.' It distinguishes from alternatives by specifying single-row insertion (vs. 'insert_rows' for multiple rows). The guidance is clear and includes context about the type of operation suitable for this tool.

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/antonov2010/mcp-dev'

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