Skip to content
Docs menu

List and delete tools

See what is registered for a session or the whole account, remove tools, and how the gateway answers a list.

List the tools of a session

tools.list() returns what is registered for the client's current session. Give client_id and/or session_id to look at another one, or all for every tool the account has registered.

for tool in catalyst.tools.list():
    print(tool.name, "-", tool.description)

catalyst.tools.list(session_id="customer-42")        # another session
catalyst.tools.list(client_id="premiere")            # another tool set in this session
catalyst.tools.list(all=True)                        # every tool, every session

Output of the cURL call against the local mock server (a real run; the live gateway answers the same shape):

Output
{
    "success": true,
    "request_id": "req_8ef687b7071a4ec3b485",
    "service": "mock",
    "session_id": null,
    "status": "completed",
    "data": {
        "count": 1,
        "tools": [
            {
                "client_id": "premiere:session-1",
                "name": "place_clip",
                "description": "Place an audio file on the timeline",
                "input_schema": {
                    "type": "object",
                    "properties": {
                        "file_id": {"type": "string"},
                        "start": {"type": "number"}
                    },
                    "required": ["file_id", "start"]
                },
                "updated_at": 1790000000
            }
        ],
        "clients": {
            "premiere:session-1": ["place_clip"]
        }
    },
    "files": [],
    "usage": {"plumes": 0},
    "error": null
}

(The mock prints "service": "mock"; the real gateway prints "service": "gateway". Small objects were joined onto one line here to save space; the fields and values are exactly what was printed.)

Listing all tools across sessions, from the Python SDK:

Output
sdk:customer-42              add_marker
sdk:customer-42              place_clip
sdk:customer-43              place_clip

What each field means

FieldMeaning
countHow many tools are in tools.
tools[].client_idThe tool set the tool belongs to, <client>:<session> for tools the SDK registered.
tools[].name, description, input_schemaThe tool as you registered it.
tools[].updated_atUnix seconds of the last registration of this tool.
clientsThe same tools grouped by client_id: { "<client_id>": ["tool", "tool"] }.

Listing is free: it costs no PLUMES (the response header x-plumes-charged is 0) and works at a zero balance. A fal_test_ key lists only tools registered with a test key; a live key lists only live ones.

Why the gateway answers this call

The Falcore server stores your tools but has no call to read them back. The gateway sees every registration pass through, so it keeps a copy of what the server accepted and answers GET /v1/tools from that copy. Three consequences:

  • The copy is written only after the server said yes, and only for tools it accepted. A refused tool is never listed.
  • Tools registered some other way, such as through the MCP register_editor_tools tool or a WebSocket register_tools message, do not pass through POST /v1/tools, so they are not in the list. They still work for the agent.
  • On a gateway that has not been updated yet, GET /v1/tools answers 404 or 405. The SDKs turn that into a clear message: "This server cannot list registered tools…".

Delete tools

catalyst.tools.delete("add_marker")                       # one name, in the current session
catalyst.tools.delete(["place_clip", "add_marker"], session_id="customer-42")

Output of the cURL call against the local mock server:

Output
{"success": true, "accepted": ["place_clip"], "rejected": []}

accepted lists the names that were removed. Listing the set afterwards no longer shows them.

To remove everything in a session's set and start again, register the new set with mode="replace": anything not in it is removed.