---
title: "Update Tool"
method: PATCH
path: "/ai/tools/{tool_id}"
tags: ["Assistants"]
---

# Update Tool

`PATCH /ai/tools/{tool_id}`

## Path parameters

- `tool_id` string, required

## Request body

- UpdateSharedToolRequest — Request model for updating a shared tool.
  - `type` string
  - `display_name` string
  - `function` object
  - `retrieval` object
  - `handoff` object
  - `invite` object
  - `webhook` object
  - `pay` PayToolParams
    - `connector_name` string, required — The name of the pay connector configured in the Telnyx API. Must reference an existing pay connector for this organization.
    - `currency` string — Default currency for payments processed by this tool.
    - `payment_method` string — Default payment method for payments processed by this tool.
    - `description` string, nullable — Optional description of the pay tool that will be passed to the assistant.
  - `client_side_tool` object
  - `update_dynamic_variables` UpdateDynamicVariablesToolParams — Configuration for an update_dynamic_variables tool.
    - `name` string, required — The function name surfaced to the LLM. Must match the OpenAI function-name pattern `^[a-zA-Z0-9_-]+$` and be unique across the assistant's function, webhook, and client_side tools.
    - `description` string, required — Description of the tool passed to the assistant, guiding when to call it and which variables to update.
    - `updatable_variables` object[], required — The dynamic variables the assistant is allowed to write. At least one is required.
      - `name` string, required — The dynamic-variable key to update. Must match `^[a-zA-Z0-9._-]+$` and may not start with the reserved `telnyx_` prefix (reserved for system variables). The `pattern` encodes both rules via a negative lookahead.
      - `type` string — Optional hint for the variable's value type (e.g. `string`).
      - `description` string — Optional description of the variable, guiding the assistant on what value to capture.
  - `timeout_ms` integer

## Response `200`

Successful Response

- SharedToolResponse
  - `id` string, required
  - `type` string, required
  - `display_name` string
  - `tool_definition` object, required
  - `timeout_ms` integer
  - `created_at` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
