---
title: "Update agent custom tool"
method: PUT
path: "/api/v0/agent/tools/{tool_id}"
tags: ["Agent Tools"]
---

# Update agent custom tool

`PUT /api/v0/agent/tools/{tool_id}`

Update an agent custom tool.

## Path parameters

- `tool_id` string, uuid, required

## Request body

- AgentCustomToolUpdateRequest — Request body for updating an agent custom tool.
  - `tool_type` 'python' | 'prompt' | 'api', nullable — New tool type.
  - `name` string, nullable — New tool name.
  - `description` string, nullable — New description.
  - `parameters` object[], nullable — New parameter definitions.
  - `code` string, nullable — New code/prompt/config body.

## Response `200`

Successful Response

- AgentCustomToolGetResponse — Response for getting an agent custom tool.
  - `id` string, uuid, required — The ID of the tool.
  - `tool_type` string, required — The tool type (python, prompt, api).
  - `name` string, required — The name of the tool.
  - `description` string, required — The description of the tool.
  - `parameters` object[], nullable — The parameter definitions.
  - `code` string, required — The code/prompt/config body.
  - `created_at` string, date-time, required — When the tool was created.
  - `updated_at` string, date-time, required — When the tool was last updated.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
