> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hasmcp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I update or modify a provider tool?

> A guide to dynamically patching and modifying an existing provider tool's input schema or execution routing.

# Modifying a Provider Tool

## Using HasMCP UI

<img src="https://mintcdn.com/hasmcp/IeVTjQlEDEFCokWv/images/kb/provider-tool-edit.png?fit=max&auto=format&n=IeVTjQlEDEFCokWv&q=85&s=ca3997e785602060c11241863afcf61a" alt="Edit Provider Tool Modal" width="2560" height="1440" data-path="images/kb/provider-tool-edit.png" />

Updating a specific tool visually:

1. From the Provider Details page, locate your target tool in the tool list.
2. Click the **Edit** button contextually aligned with it.
3. A modal will appear allowing you to alter the tool's `description`, `inputSchema`, or `execution` path.
4. Click **Save** to apply the configuration patch.

## Using REST API

APIs evolve. If an endpoint changes its expected path parameters or if you wish to refine a tool description to get better LLM adherence, you can iteratively update a specific tool.

### The API Endpoint

**`PATCH /providers/{providerId}/tools/{id}`**

### Making the Patch Request

Send a request embedding the [`UpdateProviderToolRequest`](/api-reference/providers/tools/update-provider-tool) data payload. Only include the fields inside the `tool` object that you explicitly wish to modify—omitted fields will retain their existing configurations.

#### Example Update Request

```bash theme={null}
curl -X PATCH https://app.hasmcp.com/api/v1/providers/kSuB9Gf6aD4/tools/tOlM8Hr2zP1 \
 -H "Authorization: Bearer YOUR_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{
 "tool": {
 "description": "An UPDATED prompt for the LLM. Describe the query accurately.",
 "execution": {
 "method": "POST",
 "path": "/api/v3/customers/query"
 }
 }
 }'
```

If the syntax and schemas are valid, HasMCP responds with `200 OK` signaling that all connected servers mapped to this tool will now utilize the updated configuration in real-time.
