Skip to main content
Glama

insert_row

Add a new row at a specific position in CSV data, supporting dictionary, list, or JSON string formats with null value handling.

Instructions

Insert new row at specified index with multiple data formats.

Supports dict, list, and JSON string input with null value handling. Returns insertion result with before/after statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
row_indexYesIndex to insert row at (0-based, -1 to append at end)
dataYesRow data as dict, list, or JSON string

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
columnsYesCurrent column names
successNoWhether operation completed successfully
operationNoOperation type identifierinsert_row
row_indexYesIndex where row was inserted
rows_afterYesRow count after insertion
rows_beforeYesRow count before insertion
data_insertedYesActual data that was inserted
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 mentions 'null value handling' and 'Returns insertion result with before/after statistics,' which adds some behavioral context beyond basic functionality. However, it doesn't cover important aspects like error conditions, performance implications, whether the operation is atomic, or what specific statistics are returned. The description provides moderate transparency but leaves gaps for a 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 appropriately concise with three sentences that each add value: the core functionality, supported formats, and return information. It's front-loaded with the main purpose and avoids redundancy. While efficient, the second sentence could be slightly more structured for clarity.

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 the tool has an output schema (which handles return values), 100% schema description coverage, and no annotations, the description provides adequate context for a row insertion operation. It covers the core action, data format support, and mentions return statistics. For a mutation tool with good schema coverage and output schema, this is reasonably complete, though it could benefit from more behavioral details.

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?

The input schema has 100% description coverage, so the schema already documents both parameters thoroughly. The description adds value by explaining the semantic meaning of 'multiple data formats' and clarifying that 'dict, list, and JSON string' are supported, which complements the schema's technical specification. However, it doesn't provide additional syntax examples or format details beyond what's implied by the schema.

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?

The description clearly states the tool's purpose: 'Insert new row at specified index with multiple data formats.' It specifies the verb ('Insert'), resource ('new row'), and scope ('at specified index'), but doesn't explicitly differentiate from sibling tools like 'add_column' or 'update_row' which might have overlapping functionality. The purpose is clear but lacks sibling distinction.

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?

The description provides no guidance on when to use this tool versus alternatives like 'add_column' or 'update_row'. It mentions supported data formats but doesn't indicate prerequisites, constraints, or typical use cases. There's no explicit 'when-to-use' or 'when-not-to-use' information, leaving the agent to infer usage from context alone.

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/jonpspri/databeak'

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