Tables

Create a table

tables_create · Changes data · Markdown

Creates 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

From your agent’s balance. A call that fails costs nothing.

An example

Make us a table to track workshop jobs: order number, customer, bike, the work, due date, status and price.

Your agent callstables_create$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.

With these arguments
{
  "name": "Workshop jobs",
  "columns": [
    {
      "name": "Order",
      "type": "text",
      "required": true
    },
    {
      "name": "Customer",
      "type": "text"
    },
    {
      "name": "Bike",
      "type": "select",
      "options": [
        "Willamette 8",
        "Tabor gravel",
        "Ladd cargo"
      ]
    },
    {
      "name": "Work",
      "type": "text"
    },
    {
      "name": "Due",
      "type": "date"
    },
    {
      "name": "Status",
      "type": "select",
      "options": [
        "Waiting for parts",
        "On the stand",
        "Ready",
        "Picked up"
      ]
    },
    {
      "name": "Price",
      "type": "number",
      "currency": "USD"
    }
  ]
}
What comes back
{
  "table": {
    "table_id": 4101,
    "name": "Workshop jobs",
    "description": "",
    "rows": 0,
    "columns": [
      {
        "id": "c1",
        "name": "Order",
        "type": "text",
        "required": true
      },
      {
        "id": "c2",
        "name": "Customer",
        "type": "text",
        "required": false
      }
    ]
  }
}

Use it when

The business tracks something in rows and columns that has no area of its own.

What it does

A table with typed columns: text, long_text, number (with decimals or a currency), checkbox, date, datetime, select and multi_select (with options), email, url, phone, or file (a file_id from the file store). Values are checked against their column on the way in. Up to 100 columns and 100,000 rows.

What comes back

table: its table_id, name, description, row count and columns. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
nameRequiredstring1 to 80 characters.
descriptionstringUp to 500 characters.
columnsRequiredarray of objects1 to 100 items.
columns[].nameRequiredstring1 to 60 characters.
columns[].typestringOne of: text,long_text,number,checkbox,date,datetime,select,multi_select,email,url,phone,file. Default: text.
columns[].requiredboolean
columns[].optionsarray of stringsUp to 100 items.
columns[].decimalsinteger0 to 6.
columns[].currencystringMatches ^[A-Za-z]{3}$.

The call

Over MCP, call tables_create on https://api.conecto.chat/mcp/tables. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/tables_create \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Workshop jobs","columns":[{"name":"Order","type":"text","required":true},{"name":"Customer","type":"text"},{"name":"Bike","type":"select","options":["Willamette 8","Tabor gravel","Ladd cargo"]},{"name":"Work","type":"text"},{"name":"Due","type":"date"},{"name":"Status","type":"select","options":["Waiting for parts","On the stand","Ready","Picked up"]},{"name":"Price","type":"number","currency":"USD"}]}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
invalid_input400A 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.
name_taken409A table has that name already.Pick another name.
limit_reached409The business has 50 tables already.Delete one with tables_delete.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md