---
title: "Create a decorator for a tool"
method: POST
path: "/tools/decorators"
tags: ["Tools"]
---

# Create a decorator for a tool

`POST /tools/decorators`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/tools/decorators`
- Auth: none declared

Creates a new decorator entry for a tool in the tool registry.

## Request body

- object
  - `toolDecorator` ToolsDecoratorsPostRequestBodyContentApplicationJsonSchemaToolDecorator
    - `referenceId` string, required: The referenceId of the tool to decorate.
    - `name` string, required: The name of the decorator.
    - `description` string, required: A description of the decorator.
    - `toolDescription` string, required: The decorated tool description.
    - `toolInputSchema` ToolsDecoratorsPostRequestBodyContentApplicationJsonSchemaToolDecoratorToolInputSchema, required: The decorated tool input schema.

## Response `200`

The inserted decorator ID

- unknown

## Other responses

- `500`: Error response from API

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
