---
title: "Update a tool"
method: PATCH
path: "/tools/{tool_id}"
tags: ["Tool"]
---

# Update a tool

`PATCH /tools/{tool_id}`

Update a tool's editable fields (superadmin only).

## Path parameters

- `tool_id` integer, required — ID of the tool to update.

## Query parameters

- `cookie_name` string, nullable

## Request body

- ToolUpdate — Editable fields of a tool; only provided fields are updated.
  - `name` string, nullable — Human-readable name of the tool.
  - `description` string, nullable — Short description of what the tool does.
  - `prompt` string, nullable — Tool prompt/description shown to LLM

## Response `200`

Successful Response

- ToolOut — A tool as returned by the API.
  - `id` integer, required — Unique identifier of the tool.
  - `name` string, required — Human-readable name of the tool.
  - `description` string, nullable, required — Short description of what the tool does.
  - `prompt` string, nullable, required — Tool prompt/description shown to LLM
  - `created_at` string, date-time, required — UTC timestamp when the tool was created.
  - `updated_at` string, date-time, nullable, required — UTC timestamp when the tool was last updated, or null if never updated.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Caller is not a superadmin.
- `404` — No tool exists with the given id.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/revisions/b53e89b98c2b/schema)
