---
title: "Create tool"
method: POST
path: "/v1/tools"
tags: ["Tool"]
---

# Create tool

`POST /v1/tools`

Create a tool in your project.

## Request body

- CreateToolRequest
  - `code` string, required
  - `description` string
  - `input_schema` unknown
  - `language` 'python' | 'javascript' | 'typescript', required
  - `name` string, required

## Response `200`

OK

- Tool
  - `code` string, required
  - `description` string, required
  - `id` string, required
  - `input_schema` unknown, required
  - `language` 'python' | 'javascript' | 'typescript', required
  - `name` string, required
  - `revision_id` string, required

## Other responses

- `401` — Unauthenticated error response

## Changes

- **2025-01-15** `fbf471c508c8` — 4 breaking, 3 warning, 6 info
  - the request property `language` became required
  - removed the enum value `JAVASCRIPT` of the request property `language`
  - removed the enum value `PYTHON` of the request property `language`
  - removed the enum value `TYPESCRIPT` of the request property `language`
  - …9 more
- **2024-12-05** `9a6cae8060b4` — 2 breaking, 2 info
  - removed the enum value `PHP` of the request property `language`
  - removed the enum value `RUBY` of the request property `language`
  - removed the `PHP` enum value from the `language` response property for the response status `200`
  - removed the `RUBY` enum value from the `language` response property for the response status `200`
- **2024-11-06** `6a6ef20cc3e9` — 2 info
  - api operation id `createTool` was added
  - api tag `Tool` added
- **2024-11-06** `f91a367833f8` — 1 info
  - added the required property `language` to the response with the `200` status
- **2024-10-31** `333818f2f208` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/riza-io/apis/execute/changes/v1/tools/post.md)

---

[API](https://skmtc.dev/riza-io/apis/execute.md) · [All operations](https://skmtc.dev/riza-io/apis/execute/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/riza-io/execute/revisions/fbf471c508c8/schema)
