# Turn a remote MCP connector tool off or on

> Source: https://elaichi.ai/docs/api-reference/custom-connectors/connector/updateremotemcpconnectortool/

`PATCH /connector/{slug}/tool/{name}`

Resource: **Connector** · API: **Custom connectors**

## Path parameters

- **`slug`** _(string, required)_
  Connector slug of a remote MCP connector.
- **`name`** _(string, required)_
  The tool's Elaichi name, as `GET /connector/{slug}/tool` returns it.

## Request body

- **`status`** _(string)_
  Allowed: `active`, `disabled`

## Code examples

### curl

```bash
curl -X PATCH 'https://api.elaichi.ai/connector/<slug>/tool/<name>' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"status":"active"}'
```

### JavaScript

```javascript
const body = {
  "status": "active"
};

const response = await fetch('https://api.elaichi.ai/connector/<slug>/tool/<name>', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/connector/<slug>/tool/<name>"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}
payload = {
    "status": "active"
}

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