Client tools reference
Every route, parameter, default and error for client tools, in the three SDKs and the HTTP API.
HTTP routes
| Method and path | Answered by | Purpose | Cost |
|---|---|---|---|
POST /v1/tools | Catalyst (passed through) | Register, replace or delete tools. | Route type tools (default 1 PLUMES unless priced; a failed call is refunded). |
GET /v1/tools | The gateway | List registered tools. | Free. |
POST /v1/tools body
| Field | Type | Required | Meaning |
|---|---|---|---|
client_id | string, [A-Za-z0-9][A-Za-z0-9._:-]{0,159} | yes | The tool set. The SDKs send <client>:<session>. |
tools | list of {name, description, input_schema} | yes | The tools. For delete only name is needed. |
mode | upsert | replace | delete | no, default upsert | What to do with tools. See Describe and register tools. |
user_id | string | no | Ignored 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):
{ "success": true, "accepted": ["place_clip"], "rejected": [ { "name": "wave", "reason": "..." } ] }GET /v1/tools query
| Query | Meaning |
|---|---|
client_id | Only 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
| What | Python | TypeScript | Rust |
|---|---|---|---|
| Describe a tool | Tool(name, description, params=None, input_schema=None) | new Tool({ name, description?, params?, inputSchema? }) | Tool::new(name, description).param(..) / .input_schema(v) |
| Describe an argument | Param(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(..) |
| Register | catalyst.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() |
| List | catalyst.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() |
| Delete | catalyst.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 identifier | catalyst.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 session | catalyst.update_session_id(id) (also update_sessionId) | catalyst.updateSessionId(id) | catalyst.update_session_id(id)? |
| Default tool-set name | catalyst.client_id / Catalyst(client_id=..) | catalyst.clientId / new Catalyst(key, { clientId }) | catalyst.client_id() / set_client_id(..) / builder().client_id(..) |
| Chat with tools | catalyst.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 loop | ClientToolRunner(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
| Setting | Default |
|---|---|
| Session | The one created when the client was built (sdk- + 20 hex characters). |
client_id (tool-set name) | sdk |
mode | upsert (the runner uses replace) |
strict | on: a refused tool raises |
Runner max_turns | 25 |
Return values
| Call | Returns |
|---|---|
register, delete | A registration: accepted (names), rejected ({name, reason}), client_id (the identifier used), ok (nothing rejected). |
list | A list of registered tools: client_id, name, description, input_schema, updated_at. |
update_session_id | The id you gave. |
scope_id | The <client>:<session> string. |
Errors
| When | What 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 characters | The same local InvalidRequestError. |
The API refuses a tool and strict is on | InvalidRequestError 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 key | AuthenticationError (401), as everywhere. |
| Too many requests | RateLimitError (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.