On this page

list-tables

List the Data Tables in this project. Cursor-paged: pass the last row's table_id back as 'after_id' for the next page. Each table_id is accepted unchanged by get-table, query-table-rows and the row and column tools.

What it is called on each surface

The wire name is list-tables everywhere: it is what the Wexa MCP server advertises, the REST path is POST /v1/list-tables, and each SDK exposes it under its own language's naming convention.

SurfaceName
Wexa MCP serverlist-tables
REST APIPOST /v1/list-tables
TypeScript SDKfabric.listTables()
Python SDKfabric.list_tables()

Arguments

Every argument is optional: list-tables answers a bare call.

ArgumentTypeRequiredNotes
after_idstringOptionalContinue after this table_id. Must be a table_id from a previous page; any other string is refused.
limitintegerOptionalRows per page (default 50).

project_id, projectID, organization_id and executed_by are not arguments you pass: the platform binds all four from the credential you authenticated with, and both SDKs refuse them before the request leaves your process — see server-bound arguments.

What it returns

The three surfaces wrap this differently, and code written against one will not read another correctly — see return shape.

A real response, captured from a live call to list-tables:

{
  "lifecycle_id": "qlc_000194",
  "result": {
    "limit": 5,
    "tables": [
      {
        "table_id": "6ab1944e7566f41b5c28e2eb",
        "table_name": "docs_fixture_orders"
      }
    ]
  }
}

Keeping the lifecycle_id is what lets you ask later why a call was allowed, refused or held.

Calling it

The same call on all four surfaces. Pick a tab once and every code block in the documentation follows it.

The ids in this example are real: they resolve against the project the documentation is written against, so the call runs as written once you point it at your own deployment. Swap them for the ids of your own objects.

curl -sS https://fabric.wexa.ai/v1/list-tables \
  -H "authorization: Bearer $FABRIC_API_KEY" \
  -H "content-type: application/json" \
  -d '{"limit":50}'

Errors

Both SDKs raise the same typed errors, chosen from the gateway's own error string first and its HTTP status second. list-tables checks the fabric:table.read grant, and reaches the seven classes every tool reaches — listed under the common set. These are the ones specific to it:

ErrorStatusRaised when
ValidationError400 / 422A malformed after_id is refused here — the platform checks that it is a table_id from a previous page, so a literal placeholder never gets through.
ConfigurationError5xxlist-tables is not available to you. Retrying will not help.

Governance

Every call to list-tables runs through the same ten-stage lifecycle as every other Wexa tool: the credential is resolved to a scope, the fabric:table.read grant is checked, quota is drawn down, the arguments are validated, policy rules are evaluated, the call is executed, the result is shaped and redacted, and an audit record is written. The lifecycle_id in the response is the handle to that record.

list-tables only reads, so it is not marked consequential: it is audited lightly and is never held for approval. It still consumes quota and is still refused by policy like anything else.

See also

get-table for a table's columns, query-table-rows for its rows, which identifier goes where for what after_id accepts, and the tool index for the rest.