Change columns
Adds, renames or removes columns; rows keep their values through a rename.
$0.001 a call
From your agent’s balance. A call that fails costs nothing.
An example
Add a column for who works on each bike, Sam or Priya, and call Work "Work to do" instead.
Your agent callstables_change_columns$0.001 a call
The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.
{
"table": "Workshop jobs",
"add": [
{
"name": "Mechanic",
"type": "select",
"options": [
"Sam Reyes",
"Priya Nair"
]
}
],
"rename": {
"Work": "Work to do"
}
}Use it when
The business wants to track one more thing, or a column has the wrong name.
What it does
Add columns, rename them, or remove them (their values go too). Rows keep their values through renames.
What comes back
table: the table with its new columns. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
tableRequired | string | The table's name (or its table_id). 1 to 80 characters. |
add | array of objects | Up to 50 items. |
add[].nameRequired | string | 1 to 60 characters. |
add[].type | string | One of: text,long_text,number,checkbox,date,datetime,select,multi_select,email,url,phone,file. Default: text. |
add[].required | boolean | |
add[].options | array of strings | Up to 100 items. |
add[].decimals | integer | 0 to 6. |
add[].currency | string | Matches ^[A-Za-z]{3}$. |
rename | object | {"old name": "new name"}. |
remove | array of strings | Up to 50 items. |
The call
Over MCP, call tables_change_columns on https://api.conecto.chat/mcp/tables. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/tables_change_columns \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"table":"Workshop jobs","add":[{"name":"Mechanic","type":"select","options":["Sam Reyes","Priya Nair"]}],"rename":{"Work":"Work to do"}}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No table has that name or table_id, or the table has no column of that name. | Call tables_list for the tables and their columns. |
invalid_input400 | A column has no name or a name in use, an unknown type, a select without options, or a currency that is not a 3-letter code. | Give each column its own name, a type from the list, and options for select columns. |
invalid_input400 | The change would leave no column, or more than 100. | Keep 1 to 100 columns. |
More Tables tools
All 12 tools- Create a table
tables_createCreates a table with typed columns: text, numbers with decimals or a currency, checkboxes, dates, choices, emails, links, phone numbers or files.$0.001 a call - List tables
tables_listEvery table with its columns and how many rows it has.Free* - Add rows
rows_addAdds up to 500 rows, each checked against its columns; if one is wrong, none is added.$0.001 per row added - Change rows
rows_updateChanges values in up to 500 rows by row number; only the columns given change, and null clears a cell.$0.001 per row changed - Add or update rows by a key
rows_upsertUpdates the rows whose key column matches and adds the rest, so a list from anywhere syncs without reading the table first.$0.001 per row added or updated - Find rows
rows_queryRows matching filters, all or any of them, sorted by up to 3 columns, a page at a time.Free* - Summarize rows
rows_summarizeCounts rows, and sums, averages, minimums and maximums of number columns, overall and per group, in one call.Free* - Delete rows
rows_deleteDeletes rows by their numbers, for good.Free
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md