---
title: "Create a tool for an agent"
method: POST
path: "/v2/agents/{agent_uid}/tools"
tags: ["Tools"]
---

# Create a tool for an agent

`POST /v2/agents/{agent_uid}/tools`

Adds a new tool to the agent's toolset.

When `type` is `api_request`, the `url` field is **required**.

## Request body

- CreateToolRequest
  - `type` 'api_request' | 'function' | 'end_call' | 'transfer_call' | 'dtmf' | 'send_sms' | 'send_email' | 'call_booking' | 'check_calendar_availability' | 'check_working_hours', required
  - `name` string, required
  - `description` string
  - `url` string — Required when `type` is `api_request`.
  - `method` 'get' | 'post'
  - `api_timeout` integer
  - `parameters` object
  - `use_raw_schema` boolean
  - `static_params` object
  - `speak_during_execution` boolean
  - `speak_after_execution` boolean
  - `async` boolean

## Response `201`

Tool created.

- ToolResponse
  - `id` integer, required
  - `type` 'api_request' | 'function' | 'end_call' | 'transfer_call' | 'dtmf' | 'send_sms' | 'send_email' | 'call_booking' | 'check_calendar_availability' | 'check_working_hours', required
  - `name` string, required
  - `description` string
  - `url` string — Required when `type` is `api_request`.
  - `method` 'get' | 'post'
  - `api_timeout` integer
  - `parameters` object — JSON Schema object describing the tool parameters.
  - `use_raw_schema` boolean
  - `static_params` object
  - `speak_during_execution` boolean
  - `speak_after_execution` boolean
  - `async` boolean
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `401` — Missing or invalid API key.
- `404` — The requested resource does not exist.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/openmicai/apis/openmic-v1-external-api.md) · [All operations](https://skmtc.net/openmicai/apis/openmic-v1-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openmicai/openmic-v1-external-api/revisions/58dc5cff0ca7/schema)
