---
title: "Create Custom Tool"
method: POST
path: "/agents/tools"
tags: ["custom-tools"]
---

# Create Custom Tool

`POST /agents/tools`

Create a new custom tool for an agent.

## Request body

- CustomToolCreate — Create a custom tool.
  - `name` string, required
  - `display_name` string, required
  - `description` string, required
  - `http_method` string, required
  - `url_template` string, required
  - `headers` object
  - `body_template` object, nullable
  - `auth_type` string
  - `parameters_schema` object
  - `response_path` string, nullable
  - `timeout_seconds` integer
  - `allowed_domains` string[]
  - `space_id` string, uuid, required
  - `auth_secret` string, nullable

## Response `200`

Successful Response

- CustomToolResponse — Custom tool response.
  - `name` string, required
  - `display_name` string, required
  - `description` string, required
  - `http_method` string, required
  - `url_template` string, required
  - `headers` object
  - `body_template` object, nullable
  - `auth_type` string
  - `parameters_schema` object
  - `response_path` string, nullable
  - `timeout_seconds` integer
  - `allowed_domains` string[]
  - `id` string, uuid, required
  - `space_id` string, uuid, required
  - `created_by` string, uuid, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
