> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Bulk upsert/delete tool description overrides (Tool Pack)

PATCH https://ah-api.merge.dev/api/v1/tool-packs/{tool_pack_id}/tool-description-overrides/
Content-Type: application/json

Bulk upsert or delete tool-pack-level description overrides. Send a list of items with connector_slug, tool_name, and description. Set description to null to delete an override.

Reference: https://docs.merge.dev/merge-agent-handler/agent-handler/tool-description-overrides/bulk-upsert-delete-tool-pack

## Authentication

- `Authorization` header (bearer token, required) — Token-based authentication with required prefix "Bearer"

## Request

### Path parameters

- `tool_pack_id` (string, required)

### Body (application/json)

This endpoint expects a list of BulkToolDescriptionOverrideInput.

- `list of BulkToolDescriptionOverrideInput`

## Response

### 200

- `list of ToolDescriptionOverride`

## Types

### BulkToolDescriptionOverrideInput

Input serializer for each item in a bulk PATCH request.

- `connector_slug` (string, required)
- `tool_name` (string, required)
- `description` (string, required, nullable)

### ToolDescriptionOverride

Response serializer for tool-level description overrides. Includes a computed `defined_at` field (CONNECTOR or TOOL_PACK) indicating whether the override originates from the connector level or tool pack level.

- `id` (string, required)
- `connector_slug` (string, required)
- `tool_name` (string, required) — Name of the tool being overridden
- `description` (string, required) — Custom description for the tool
- `defined_at` (string, required)
- `created_at` (datetime, required)
- `modified_at` (datetime, required)

## Examples

**Request**

```json
[
  {
    "connector_slug": "string",
    "tool_name": "string",
    "description": "string"
  }
]
```

**Response**

```json
[
  {
    "id": "string",
    "connector_slug": "string",
    "tool_name": "string",
    "description": "string",
    "defined_at": "string",
    "created_at": "2024-01-15T09:30:00Z",
    "modified_at": "2024-01-15T09:30:00Z"
  }
]
```

**SDK Code**

```python
import requests

url = "https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/"

payload = [
    {
        "connector_slug": "string",
        "tool_name": "string",
        "description": "string"
    }
]
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '[{"connector_slug":"string","tool_name":"string","description":"string"}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/"

	payload := strings.NewReader("[\n  {\n    \"connector_slug\": \"string\",\n    \"tool_name\": \"string\",\n    \"description\": \"string\"\n  }\n]")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"connector_slug\": \"string\",\n    \"tool_name\": \"string\",\n    \"description\": \"string\"\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"connector_slug\": \"string\",\n    \"tool_name\": \"string\",\n    \"description\": \"string\"\n  }\n]")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/', [
  'body' => '[
  {
    "connector_slug": "string",
    "tool_name": "string",
    "description": "string"
  }
]',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"connector_slug\": \"string\",\n    \"tool_name\": \"string\",\n    \"description\": \"string\"\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  [
    "connector_slug": "string",
    "tool_name": "string",
    "description": "string"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/tool-description-overrides/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```