Skip to main content
Glama

add_row_index

Add a numeric row index column to your dataframe. Reset row numbering after filtering or create unique IDs for each row.

Instructions

Add or reset a numeric row index as a column. Add a numeric identifier column. Useful after filtering to create unique IDs or reset row numbering. Example: add_row_index(column_name="row_id", start=1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startNo
df_nameNo
column_nameNoindex

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It does not state whether the operation modifies the dataframe in place or returns a new one, whether it overwrites an existing column, or how the df_name parameter affects behavior. The word 'reset' implies overwriting but is not explicit.

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 concise: three sentences including an example, with no redundant information. The main purpose is front-loaded.

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?

The tool is simple and an output schema exists, reducing the need to describe return values. However, the missing df_name explanation and lack of behavioral details (e.g., in-place vs. return) leave gaps. For a mutation tool with no annotations, more context would be expected for a higher score.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. The example implies that start sets the starting value and column_name names the column, but df_name is never mentioned. This is insufficient for the 3-parameter 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 states a specific verb+resource: 'Add or reset a numeric row index as a column.' It clearly differentiates from other column operations (e.g., create_column, rename_columns) by focusing on row indexing. The example further clarifies expected usage.

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 gives a clear use case: 'Useful after filtering to create unique IDs or reset row numbering.' This tells the agent when to use the tool, though it does not explicitly name alternatives or exclusion criteria, preventing a 5.

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/AstyanM/mcp-data-science'

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