`lumail@2.1.0` · [`lumail.tools`](/docs/sdk/v2/tools)

```typescript
tools.list(): Promise<LumailResult<ListToolsResponse>>
```

Catalog. The SDK takes no arguments and does not forward `?limit=`. The HTTP route may still accept `limit` if you call it with fetch.

## Parameters

No parameters.

## Response Fields

| Field | Type | Description |
| ---------- | ------------------ | ---------------------------------------------------------------------------------------------------------- |
| `object` | `"list"` | Discriminator. Always `list`. |
| `has_more` | boolean | `true` when the HTTP `limit` slice hid more rows. The SDK never sends `limit`, so this is usually `false`. |
| `data` | `ToolDefinition[]` | Tools. Each row: `name`, `description`, optional `category`, `inputSchema`, `outputSchema`. |

`data` is `{ object, data, has_more }`. Failures return `{ data: null, error: { name, message, statusCode } }`.


## API Reference
**Method:** GET
**Endpoint:** /api/v2/tools

### SDK
```ts
import { Lumail } from "lumail";

const lumail = new Lumail({ apiKey: process.env.LUMAIL_API_KEY });
const { data, error } = await lumail.tools.list();
if (error) {
  throw error;
}
for (const tool of data.data) {
  console.log(tool.name);
}
```

### cURL
```bash
curl https://lumail.io/api/v2/tools \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

### JavaScript
```javascript
const response = await fetch("https://lumail.io/api/v2/tools", {
  headers: {
    Authorization: "Bearer YOUR_API_TOKEN",
  },
});
const data = await response.json();
```

### Success Response
```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "name": "verify_email",
      "description": "Check syntax and deliverability signals for one address."
    }
  ]
}
```

### Error Response
```json
{
  "name": "missing_api_key",
  "message": "Missing API key",
  "statusCode": 401
}
```
