---
title: "Update tool"
method: PATCH
path: "/v1/senders/{senderId}/agent/tools/{toolId}"
tags: ["Agent Tools"]
---

# Update tool

`PATCH /v1/senders/{senderId}/agent/tools/{toolId}`

Update a tool.

## Path parameters

- `senderId` string, required
- `toolId` string, required

## Request body

- ToolUpdateRequest
  - `name` string
  - `description` string
  - `parameters` ToolParameters
    - `type` 'object', required
    - `properties` object, required
    - `required` string[], required
  - `webhookUrl` string, uri
  - `webhookSecret` string, nullable
  - `enabled` boolean

## Response `200`

Tool updated.

- ToolResponse
  - `tool` AgentTool, required
    - `id` string, required
    - `agentId` string, required
    - `name` string, required
    - `description` string, required — Description for the LLM to understand when to use this tool.
    - `parameters` ToolParameters, required
      - `type` 'object', required
      - `properties` object, required
      - `required` string[], required
    - `webhookUrl` string, uri, required — HTTPS URL to call when the tool is executed.
    - `enabled` boolean, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `webhookSecret` string — Signing secret for this tool's webhook. **Returned only when the tool is created**, never on a later read. Zavu generates one if you do not supply it, and signs every call to this tool with it: `X-Zavu-Signature: <hex>`, the HMAC-SHA256 of the request body. Verify it before trusting the call. Lost it? Rotate with `POST /v1/senders/{senderId}/agent/tools/{toolId}/webhook/secret`.

## Other responses

- `400` — Invalid request.
- `401` — Unauthorized.
- `404` — Tool not found.

---

[API](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/revisions/4dacdff2adf8/schema)
