Skip to content
Docs menu

Client tools reference

Every route, parameter, default and error for client tools, in the three SDKs and the HTTP API.

HTTP routes

Method and pathAnswered byPurposeCost
POST /v1/toolsCatalyst (passed through)Register, replace or delete tools.Route type tools (default 1 PLUMES unless priced; a failed call is refunded).
GET /v1/toolsThe gatewayList registered tools.Free.

POST /v1/tools body

FieldTypeRequiredMeaning
client_idstring, [A-Za-z0-9][A-Za-z0-9._:-]{0,159}yesThe tool set. The SDKs send <client>:<session>.
toolslist of {name, description, input_schema}yesThe tools. For delete only name is needed.
modeupsert | replace | deleteno, default upsertWhat to do with tools. See Describe and register tools.
user_idstringnoIgnored for a normal key: the account is the key's own.

Answer (shape read from the server source; the live API may wrap it in the usual envelope, and the SDKs read both):

JSON
{ "success": true, "accepted": ["place_clip"], "rejected": [ { "name": "wave", "reason": "..." } ] }

GET /v1/tools query

QueryMeaning
client_idOnly this tool set. Omit for every tool the account registered.

Answer: the usual envelope with data = { count, tools: [{client_id, name, description, input_schema, updated_at}], clients: { "<client_id>": ["name", ...] } }.

SDK calls

WhatPythonTypeScriptRust
Describe a toolTool(name, description, params=None, input_schema=None)new Tool({ name, description?, params?, inputSchema? })Tool::new(name, description).param(..) / .input_schema(v)
Describe an argumentParam(name, type="string", description="", required=False, enum=None, items=None, default=None){ name, type?, description?, required?, enum?, items?, default? }Param::string(name) … .description(..) .required() .one_of(..) .default_value(..)
Registercatalyst.tools.register(tools, client_id=None, session_id=None, mode="upsert", strict=True)catalyst.tools.register(tools, { client_id, session_id, mode, strict })catalyst.tools().register(&tools).client_id(..).session_id(..).mode(..).lenient().send()
Listcatalyst.tools.list(client_id=None, session_id=None, all=False)catalyst.tools.list({ client_id, session_id, all })catalyst.tools().list().client_id(..).session_id(..).all().send()
Deletecatalyst.tools.delete(names, client_id=None, session_id=None)catalyst.tools.delete(names, { client_id, session_id })catalyst.tools().delete(&names).client_id(..).session_id(..).send()
The wire identifiercatalyst.tools.scope_id(client_id=None, session_id=None)catalyst.tools.scopeId({ client_id, session_id })catalyst.tools().scope_id(Option<&str>, Option<&str>)
Switch sessioncatalyst.update_session_id(id) (also update_sessionId)catalyst.updateSessionId(id)catalyst.update_session_id(id)?
Default tool-set namecatalyst.client_id / Catalyst(client_id=..)catalyst.clientId / new Catalyst(key, { clientId })catalyst.client_id() / set_client_id(..) / builder().client_id(..)
Chat with toolscatalyst.chat.create(msg, tools=True) or client_id="name"catalyst.chat.create(msg, { tools: true }) or { client_id }.chat().create(msg).tools(true) or .client_id("name")
Run the loopClientToolRunner(catalyst, "name") then .add(tool, fn) or @runner.tool(..) and .run(message=..)catalyst.toolRunner("name").tool(name, def, fn).run({ message })catalyst.tool_runner("name").tool(..).run(&session, Some(msg), None, None, None)

Defaults

SettingDefault
SessionThe one created when the client was built (sdk- + 20 hex characters).
client_id (tool-set name)sdk
modeupsert (the runner uses replace)
stricton: a refused tool raises
Runner max_turns25

Return values

CallReturns
register, deleteA registration: accepted (names), rejected ({name, reason}), client_id (the identifier used), ok (nothing rejected).
listA list of registered tools: client_id, name, description, input_schema, updated_at.
update_session_idThe id you gave.
scope_idThe <client>:<session> string.

Errors

WhenWhat you get
A tool is malformed (empty name, unknown type, repeated names, both params and input_schema)InvalidRequestError (422, INVALID_REQUEST), raised before anything is sent. details names the field.
A session or client id has a character that is not allowed, or client_id:session_id is longer than 160 charactersThe same local InvalidRequestError.
The API refuses a tool and strict is onInvalidRequestError with code TOOL_REJECTED, listing each name and reason.
GET /v1/tools is not available on this server (404 or 405)FalcoreError: "This server cannot list registered tools".
No key / a bad keyAuthenticationError (401), as everywhere.
Too many requestsRateLimitError (429, Retry-After).

See Errors for the shared error model and Retries for what is retried. A registration is safe to retry, so the SDKs retry it on a network failure.