---
title: "Create Tool"
method: POST
path: "/ai/tools"
tags: ["Assistants"]
---

# Create Tool

`POST /ai/tools`

Create a new custom AI tool that can be attached to AI assistants.

## Request body

- CreateSharedToolRequest — Request model for creating a shared (org-level) tool.
  - `client_side_tool` object
  - `display_name` string, required
  - `function` object
  - `handoff` object
  - `invite` 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.
    - `description` string, nullable — Optional description of the pay tool that will be passed to the assistant.
    - `payment_method` string — Default payment method for payments processed by this tool.
  - `retrieval` object
  - `timeout_ms` integer
  - `type` string, required
  - `update_dynamic_variables` UpdateDynamicVariablesToolParams — Configuration for an update_dynamic_variables tool.
    - `description` string, required — Description of the tool passed to the assistant, guiding when to call it and which variables to update.
    - `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.
    - `updatable_variables` object[], required — The dynamic variables the assistant is allowed to write. At least one is required.
      - `description` string — Optional description of the variable, guiding the assistant on what value to capture.
      - `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`).
  - `webhook` object

## Response `200`

Successful Response

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

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-04** `ca70e22d0d63` — 1 info
  - added the new optional request property `update_dynamic_variables`
- **2026-07-16** `020dcdb3d9da` — 1 info
  - added the new optional request property `pay`
- **2026-07-07** `2c2d1971907f` — 1 info
  - added the new optional request property `client_side_tool`
- **2026-07-02** `224ed0d8a5c3` — 1 warning
  - removed the request property `client_side_tool`

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/ai/tools/post.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
