Skip to main content
PATCH /workflows/:id/tools/:toolId Edit a custom tool’s config. name is immutable — the agent’s prompt references it, so delete and recreate the tool instead of renaming it.

Path Parameters

ParameterTypeRequiredDescription
idstring (uuid)YesAgent ID
toolIdstring (uuid)YesTool ID

Request Body

Provide at least one field. Same shape as Create Workflow Tool, minus name.
FieldTypeRequiredDescription
descriptionstringNo
urlstringNo
methodstringNoGET, POST, PUT, PATCH, or DELETE
parametersobjectNo
headersobjectNo
query_parametersobjectNo
timeout_msintegerNo
available_in_statusesstring[] | nullNo
auto_run_on_entrybooleanNo
call_oncebooleanNo
is_activebooleanNo

Responses

200 — Tool updated

{
  "success": true,
  "tool": {
    "id": "9a1b2c3d-0000-4000-8000-000000000001",
    "name": "check_availability",
    "description": "Checks open slots, including weekends",
    "method": "GET",
    "url": "https://api.acme.com/availability",
    "is_active": true,
    "available_in_statuses": null,
    "auto_run_on_entry": false,
    "call_once": false,
    "sort_order": 0
  }
}

400 — Validation error

{
  "error": "Invalid input",
  "message": "name is immutable (the agent references it); delete + recreate to rename"
}
Also returned as "invalid method" or "Nothing to update".

401 — Authentication error

See Authentication.

404 — Not found

{
  "error": "Not found",
  "message": "Tool not found"
}
Also returned if the agent itself doesn’t exist ("Workflow not found").

500 — Internal server error

Last modified on July 10, 2026