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

# List the tools the key can call

GET https://mcp.basement.chat/v1/tools

The tools this key's access level allows, each with its description and the JSON Schema of its arguments. A tool that is not in the list answers 403.

Reference: https://docs.basement.chat/api-reference/gateway-api/tools/list

## Authentication

- `Authorization` header (bearer token, required) — A Basement key (bsmt_...), from Agents, Connect in the app.

## Response

### 200

The tools.

- `tools` (list of ToolDefinition, required)

## Errors

### 401 Unauthorized Error

The API key is missing, wrong, revoked or expired.

- `error` (ErrorResponseError, required)

### 429 Too Many Requests Error

Too many calls in a minute. Wait and try again.

- `error` (ErrorResponseError, required)

## Types

### ToolDefinition

- `name` (string, required)
- `description` (string, required)
- `inputSchema` (ToolDefinitionInputSchema, required) — The JSON Schema of the tool's arguments

### ErrorResponseError

- `code` (string, required) — unauthorized, forbidden, invalid_request, not_found, rate_limited, service_error or internal_error
- `message` (string, required) — What went wrong, in English

### ToolDefinitionInputSchema

The JSON Schema of the tool's arguments

## Examples

**Response**

```json
{
  "tools": [
    {
      "name": "string",
      "description": "string",
      "inputSchema": {}
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://mcp.basement.chat/v1/tools"

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://mcp.basement.chat/v1/tools';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

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"
	"net/http"
	"io"
)

func main() {

	url := "https://mcp.basement.chat/v1/tools"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	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://mcp.basement.chat/v1/tools")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

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.get("https://mcp.basement.chat/v1/tools")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://mcp.basement.chat/v1/tools', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://mcp.basement.chat/v1/tools");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://mcp.basement.chat/v1/tools")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```