# Get tool

> GET https://api.nabrah.ai/api/ext/tool/{tool_id}

Group: Tools. Page: https://www.nabrah.ai/en/docs/api-reference/tools/get-tool

Retrieve the full record for a single tool by its id, including its url, method, timeout, and the complete list of parameters with their tool_id back-reference. Use this to inspect a tool's exact configuration before updating it or linking it to an agent. Authenticated with your API key.

## Response fields

- **Full tool record**: Includes id (the tool_id), project_id, timestamps, the webhook url and method, timeout_seconds, and the full parameters array. Each parameter carries a tool_id back-reference to this tool. link_id is populated when the tool is being viewed in the context of a specific agent link. Fields: `id`, `name`, `description`, `url`, `method`, `project_id`, `timeout_seconds`, `parameters`, `link_id`.

## Authorization

- `X-API-Key` (string, header, required): your workspace API key.

## Path parameters

- `tool_id` (string, required): The ID of the tool to fetch. Obtain it from GET /api/ext/tool (the id field) or from the response of POST /api/ext/tool.

## Response

### 200 Successful Response

Content type: `application/json`

```json
{
  "name": "string",
  "description": "string",
  "url": "string",
  "method": "GET",
  "id": "00000000-0000-4000-8000-000000000000",
  "project_id": "00000000-0000-4000-8000-000000000000",
  "created_at": "2026-01-15T12:00:00.000Z",
  "updated_at": "2026-01-15T12:00:00.000Z",
  "timeout_seconds": 5,
  "parameters": [
    {
      "name": "string",
      "location": "query",
      "parameter_type": "constant",
      "data_type": "string",
      "description": "string",
      "tool_id": "00000000-0000-4000-8000-000000000000",
      "required": false,
      "value": "string",
      "default_value": "string"
    }
  ],
  "link_id": "00000000-0000-4000-8000-000000000000"
}
```

### 422 Validation Error

Content type: `application/json`

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
```

## Request examples

### cURL

```bash
curl --request GET \
  --url 'https://api.nabrah.ai/api/ext/tool/<tool_id>' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/tool/<tool_id>"
headers = {"X-API-Key": "<your-api-key>"}

response = requests.get(url, headers=headers)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.nabrah.ai/api/ext/tool/<tool_id>", {
  method: "GET",
  headers: { "X-API-Key": "<your-api-key>" },
});

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

### Go

```go
package main

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

func main() {
	req, _ := http.NewRequest("GET", "https://api.nabrah.ai/api/ext/tool/<tool_id>", nil)
	req.Header.Set("X-API-Key", "<your-api-key>")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```
