On this page

Data tables

rename-table

Can be held for approval

Rename a Data Table. 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":"rename-table","arguments":{"table_id":"6ab196817566f41b5c28e31f","table_name":"docs_fixture_scratch_renamed"}}}'
{
  "content": [
    {
      "type": "text",
      "text": "{\"lifecycle_id\":\"qlc_000202\",\"result\":{\"table_id\":\"6ab196817566f41b5c28e31f\",\"table_name\":\"docs_fixture_scratch_renamed\",\"triggers_preserved\":0}}"
    }
  ],
  "isError": false
}

Parameters

ParameterTypeRequiredNotes
table_idstringRequiredTable id from list-tables, a 24-character hex id. A table in this project.
table_namestringRequiredNew name. Non-empty.
Show full response

A real response, captured from a live call to rename-table:

{
  "lifecycle_id": "qlc_000202",
  "result": {
    "table_id": "6ab196817566f41b5c28e31f",
    "table_name": "docs_fixture_scratch_renamed",
    "triggers_preserved": 0
  }
}
More details

The table's triggers are read back and written with the new name, so renaming never disables the table's automation. The result reports triggers_preserved.

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