On this page

Data tables

edit-column

Change one column of a Data Table. Supply at least one property to change; only the properties you supply change. Needs the fabric:table.write grant.

curl -sS -X POST https://fabric.wexa.ai/mcp/$FABRIC_PROJECT_ID \
  -H "authorization: Bearer $FABRIC_API_KEY" \
  -H "Mcp-Session-Id: $MCP_SESSION_ID" \
  -H "content-type: application/json" -H "accept: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"edit-column","arguments":{"table_id":"6ab196817566f41b5c28e31f","column_id":"6ab1968193a7cbd766d5cd74","column_name":"notes_renamed"}}}'
{
  "content": [
    {
      "type": "text",
      "text": "{\"lifecycle_id\":\"qlc_000204\",\"result\":{\"table_id\":\"6ab196817566f41b5c28e31f\",\"column\":{\"column_id\":\"6ab1968193a7cbd766d5cd74\",\"column_name\":\"notes_renamed\",\"column_type\":\"String\"},\"triggers_preserved\":0}}"
    }
  ],
  "isError": false
}

Parameters

ParameterTypeRequiredNotes
table_idstringRequiredTable id from list-tables, a 24-character hex id. A table in this project.
column_idstringRequiredColumn id from get-table. A column on that table.
column_namestringOptionalNew name.
column_typestringOptionalNew type.
array_typestringOptionalItem type, for an Array column.
default_valueanyOptionalDefault value for the column.
enum_optionsarrayOptionalAllowed values, for an Enum column.
Errors
  • ValidationError (400 / 422): no property to change was supplied. Pass at least one of column_name, column_type, array_type, default_value or enum_options.
Show full response

A real response, captured from a live call to edit-column:

{
  "lifecycle_id": "qlc_000204",
  "result": {
    "column": {
      "array_type": null,
      "column_id": "6ab1968193a7cbd766d5cd74",
      "column_name": "notes_renamed",
      "column_type": "String",
      "default_value": null,
      "enum_options": null,
      "has_triggers": false,
      "object_fields": null
    },
    "table_id": "6ab196817566f41b5c28e31f",
    "triggers_preserved": 0
  }
}
More details

The column is read back first and its triggers are written with it, so editing a column never disables its automation. The result reports triggers_preserved.

edit-column changes a table but is not marked consequential: it is audited lightly and the project's write gate never holds it.

Every tool call works the same way: How every tool call works.