Skip to main content
Glama

Upsert Coda Rows

coda_upsert_rows

Insert new rows or update existing ones in a Coda base table by matching on specified key columns.

Instructions

Insert or update rows in a Coda table (base table only, not views).

Provide row data as an array of objects, each with column IDs as keys. Use coda_list_columns to get the column IDs first.

Args:

  • doc_id (string): The document ID

  • table_id (string): The BASE table ID (not a view)

  • rows (array): Array of row objects. Each object has a "cells" array with {column, value} pairs. Example: [{"cells": [{"column": "c-ABC123", "value": "Hello"}]}]

  • key_columns (array, optional): Column IDs to use as unique keys for upsert matching

Returns: Request ID and number of rows added/updated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsYesRows to insert/update
doc_idYesCoda document ID
table_idYesBase table ID (not a view)
key_columnsNoColumn IDs used as unique keys for upsert matching
Behavior4/5

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

Annotations indicate a mutating operation (readOnlyHint=false) and non-idempotent but non-destructive. The description adds useful context: it works only on base tables (not views), and returns the number of rows added/updated. It does not contradict annotations and provides behavioral cues beyond the structured fields.

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 well-structured: a brief summary, a prerequisite hint, then clear parameter explanations with an example. It is concise with no wasted words, and key information is front-loaded.

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?

Given the tool's complexity (upsert with optional key columns, requiring column IDs), the description is complete. It covers the prerequisite, parameter format, base-table constraint, and return value. No output schema exists, but the description sufficiently describes the return.

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 baseline is 3. The description adds value by explaining the `rows` parameter with a concrete example and clarifying the `key_columns` purpose. This goes beyond the schema descriptions which are concise but lack usage examples.

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 'Insert or update rows in a Coda table (base table only, not views)', specifying the verb (upsert), resource (rows in a Coda table), and scope (base table only). It distinguishes from sibling tools like coda_list_rows, coda_get_row, coda_update_row, and coda_delete_row by focusing on the upsert operation.

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

Usage Guidelines3/5

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

The description provides a prerequisite ('Use coda_list_columns to get the column IDs first') which guides the agent on preparation. However, it does not explicitly state when to use this tool versus alternatives like coda_update_row (for updating by row ID) or coda_insert_row (if available). The usage context is implied but lacks exclusions or alternative recommendations.

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/thierryvm/coda-mcp-server'

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