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

# Create Tool

`POST /tool`

## Request

- Base URL: `https://api.overfit.de` (the document declares no server; this is the origin it was published from)
- URL: `https://api.overfit.de/tool`
- Auth: one of:
  - OpenID Connect (`https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration`)
  - API key in header `X-API-Key`

Create a new tool. Accepts ToolCreate Schema as input. A can only be used by using it with an Agent.
Accepts ToolCreate Schema as input.

## Request body

- ToolCreate
  - `name` string, required
  - `description` string, nullable
  - `public` boolean
  - `llm_selection_string` string, nullable
  - `tool_data` union, required
    - ToolInsight
      - `tool_type` 'INSIGHT', required
      - `insight_id` string, required
    - ToolCodeInterpreter
      - `tool_type` 'CODE_INTERPRETER', required

## Response `200`

Successful Response

- Tool
  - `name` string, required
  - `description` string, nullable
  - `public` boolean
  - `llm_selection_string` string, nullable
  - `id` string, required
  - `sub` string, uuid, required
  - `tool_type` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval.md) · [All operations](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/llms.txt) · [OpenAPI document](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/revisions/0055f7fe41e5?raw)
