Returns one tool schema. Permission must include the tool's required scope.

## Path Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `toolName` | string | **Required.** Tool name, e.g. `list_subscribers`. |

## Response Fields

| Field | Type | Description |
| ----- | ---- | ----------- |
| `name` | string | Tool name. |
| `description` | string | What the tool does. |
| `category` | string | Tool group. |
| `inputSchema` | object | JSON Schema for the POST body. |
| `outputSchema` | object | JSON Schema for the tool result. |
| `endpoint` | string | Execute path: `/api/v2/tools/{name}`. |

## Errors

| Status | `name` | When |
| ------ | ------ | ---- |
| 401 | `missing_api_key` | Missing or invalid bearer token |
| 403 | `missing_permission` | Token lacks the tool's permission |
| 404 | `not_found` | Unknown tool name |

## Related

- [Execute Tool](/docs/api-reference/v2/tools-execute)
- [List Tools](/docs/api-reference/v2/tools-list)
- [SDK: lumail.tools.get](/docs/sdk/v2/tools-get)


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

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

const lumail = new Lumail({ apiKey: process.env.LUMAIL_API_KEY });
const { data, error } = await lumail.tools.get("list_subscribers");
if (error) {
  throw error;
}
console.log(data.name, data.inputSchema);
```

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

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

### Success Response
```json
{
  "name": "list_subscribers",
  "description": "List subscribers in your organization.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "limit": { "type": "integer" }
    }
  },
  "endpoint": "/api/v2/tools/list_subscribers"
}
```

### Error Response
```json
{
  "name": "not_found",
  "message": "Tool \"not_a_real_tool\" not found",
  "statusCode": 404
}
```
