On this page

Tool reference

This reference covers 62 governed tools. Each one is the same tool on all four surfaces — the Wexa MCP server, the REST API, the TypeScript SDK and the Python SDK — running through the same governance and writing the same audit record. Each has one page here.

It also covers the calls that sign a Wexa user in through an SDK — login, refresh-session and logout. They are not governed tools: they run before any tool call, on the REST API and both SDKs only.

Three pages are about all of them rather than any one: errors for every class both SDKs raise, which identifier goes where for the id each argument actually accepts, and connection-info to see which tools you can call.

Return shape

Every tool returns the same data on every surface, but each surface wraps it differently, and code written against one will not read another correctly.

SurfaceWhat you get
REST API{"lifecycle_id": "qlc_...", "result": { ... }} — read result.
TypeScript SDKresult already unwrapped: the object you get back is the result. The governance ids are non-enumerable properties named lifecycleId and traceId — camel case, so result.lifecycle_id is undefined. Object.keys() and JSON.stringify() omit them. Reading .result gives you nothing.
Python SDKresult already unwrapped, the same way, but the ids are attributes named lifecycle_id and trace_id — snake case. The two SDKs differ here, and code ported between them by hand gets undefined rather than an error.
Wexa MCP server{"content": [{"type": "text", "text": "..."}], "isError": false}, where text is the REST envelope as a JSON string. The client must parse it.

Every tool page shows its own real captured output in all of these forms.

Every tool

Signing in

ToolWhat it does
loginLog a Wexa user in with email and password and get an SDK session for one project.
refresh-sessionTrade an SDK session's refresh token for a new token pair.
logoutEnd an SDK session so it can no longer be used or refreshed.

Reading context and code

ToolWhat it does
connector-readRun a READ-ONLY query for the ACTUAL ROWS of an OM-synced/Wexa DB source, LIVE against the source (nothing is copied into Wexa — ideal for large warehouse/DB sources).
fetch-codeFetch a single code span from the ingested codebase (CodeChunk store).
query-contextRun a read-only Cypher query against this project's Wexa context graph.
search-codeGrep-like search over the project's ingested codebase (CodeChunk fulltext on the server).

Writing context

ToolWhat it does
create-ontologyDefine graph ontology (node types, relationships, properties) for this project.
delete-contextDelete a node from this project's context graph, together with its relationships.
save-contextSave nodes and relationships into this project's context graph (Simple/auto mode).

Running agents

ToolWhat it does
run-agentResume an agent that ALREADY EXISTS in this project, with a natural-language goal, and return its execution_id.
run-process-flowRun a process flow against the knowledge base.

Agents

ToolWhat it does
agent-versionsRead an agent's promoted version history.
create-agentCreate an agent in the Orchestrate Agents registry and return its agent_id, which get-agent, update-agent, delete-agent and run-agent all accept unchanged.
delete-agentDelete an agent from the Orchestrate Agents registry by its agent_id.
get-agentRead one agent from the Orchestrate Agents registry by its agent_id (the id list-agents and create-agent return, and the one the console shows in its URL).
list-agentsList the agents in this project — the same set the console's Agents page shows, one row per agent.
rollback-agent-versionMake an earlier promoted version of an agent live again.
update-agentChange an agent in the Orchestrate Agents registry.

Process flows

ToolWhat it does
create-process-flowCreate a multi-agent process flow.
delete-process-flowDelete a process flow from this project by id.
flow-versionsList a process flow's promoted versions, newest first, with which one is live.
get-process-flowFetch a multi-agent process flow by id or name, including its agents and wiring.
promote-flowSnapshot a process flow exactly as it stands now and record that snapshot as its next version, becoming the live one.
rollback-flow-versionMark an earlier version of a process flow as the live one.
update-process-flowAdd ONE new agent (skilled_agent, decider_agent or interop_agent — the external agent node) to an EXISTING process flow -- the tool equivalent of the UI's '+' button -- OR, if agent_id is given, EDIT an agent already in the process flow in place (a PARTIAL update: only the fields you include in agent change, everything else on that…

Executions

ToolWhat it does
get-executionPoll a process flow execution, including one waiting on an external agent.

Schedules

ToolWhat it does
create-scheduleSchedule an agent or a process flow to run unattended, and return its schedule_id.
delete-scheduleCancel and remove a schedule by its schedule_id.
get-scheduleRead one schedule by its schedule_id.
list-schedulesList the schedules in this project — the same set the console's Schedules panel shows.
update-scheduleChange a schedule.

Triggers

ToolWhat it does
list-triggersList the triggers attached to one target, or to every target of one kind in this project.
set-triggersReplace the triggers on one agent, connector, table or column.

Knowledge base

ToolWhat it does
delete-kb-documentDelete knowledge base documents from this project by tag.
knowledge-base-addAdd a document to this project's knowledge base so knowledge-base-retrieve can find it.
knowledge-base-retrieveRetrieve raw KB documents by tags.

Connectors and skills

ToolWhat it does
list-connectorsList the connectors this project may use, each with its actions and the JSON Schema of every action's arguments.
list-skillsList this project's existing, already-usable skills, grouped by connector -- each skill's real _id can be put directly into an agent's skills[] (create-process-flow's manifest mode or update-process-flow).
provision-connectorProvision a credential-free connector in this project, which mints one skill per action it supports — the only way to get skills into a new project, and the first step before create-process-flow (agent.skills[] must reference real ids from list-skills).
run-connector-actionRun one action of a connector this project may use, and return its result.
sync-connectorSync one connector this project may use, the same as the console's Sync this connector, and get a sync id back at once.
get-connector-syncThe status of a connector sync, in two parts: whether the refresh succeeded, and what is known about ingestion.

Peer agents

ToolWhat it does
list-peer-agentsList the peer agent connections this project holds, with the connection_id an external agent node points at.
handshake-peer-agentAsk a candidate external agent who it is and what it says it can do, without creating anything.
register-peer-agentRegister an external agent on another platform as a peer agent connection, and return its connection_id.
delete-peer-agentRemove a peer agent connection, unless an external agent node still delegates to it.

Data Tables

ToolWhat it does
add-columnAdd one or more columns to an existing Data Table.
create-tableCreate a Data Table with its columns in one call, and return its table_id.
delete-columnDelete a column from a Data Table, and its values in every row.
delete-tableDelete a Data Table, its rows AND the connector behind it.
delete-table-rowsDelete rows from a Data Table by their row ids.
edit-columnChange one column of a Data Table.
get-tableRead one Data Table's shape: its name, its columns with their types, and the connector behind it.
insert-table-rowsInsert rows into a Data Table.
list-tablesList the Data Tables in this project.
query-table-rowsRead rows from a Data Table with paging, sorting, free-text search and structured filtering.
rename-tableRename a Data Table.
update-table-rowChange one row in a Data Table, addressed by its row_id (the row's _id as query-table-rows returns it).

Models

ToolWhat it does
list-modelsList the AI models this organization can run, and which one is the default.
run-modelSend a prompt to one of this organization's AI models and get the answer back, with the tokens, the cost and the latency.
set-modelSet this organization's default AI model — the one every agent uses unless it names its own.

Approvals

ToolWhat it does
request-approvalAsk a person in this project to approve something your app is about to do; it shows in the Approvals Inbox as an App request.
get-approvalRead one approval in this project and its decision.

Documentation

ToolWhat it does
docsWexa documentation for agents: topic=ontology (the live project ontology), query-examples, governance (your scopes/limits), tool-usage, orchestrate (process flows and knowledge base tools), or search with a query.

How to read a tool page

Each page opens with what the tool is for, in the tool's own words, then says what it is called on each of the four surfaces, lists its arguments with types and which are required, shows the same call four ways, and ends with the errors it can raise and the governance it runs under. The arguments come from the gateway itself, so a page cannot describe an argument the tool does not take.