> ## Documentation Index
> Fetch the complete documentation index at: https://gaia-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Tools

> Retrieves all tools for a project with pagination

## Query Parameters

<ParamField query="projectId" type="string" required>
  Project ID
</ParamField>

<ParamField query="limit" type="number" default="20">
  Number of results per page
</ParamField>

<ParamField query="offset" type="number" default="0">
  Pagination offset
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the operation was successful
</ResponseField>

<ResponseField name="tools" type="array">
  Array of tool objects
</ResponseField>

<ResponseField name="total" type="number">
  Total number of tools
</ResponseField>

<ResponseField name="hasMore" type="boolean">
  Indicates if there are more results
</ResponseField>

<ResponseField name="nextOffset" type="number">
  Offset for the next page
</ResponseField>

<ResponseField name="message" type="string">
  Response message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0' \
    --header 'Authorization: Bearer <token>'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0',
    {
      method: 'GET',
      headers: {
        'Authorization': 'Bearer <token>'
      }
    }
  );

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

  ```python Python theme={null}
  import requests

  url = "https://api.yourapp.com/api/tools"
  headers = {
      "Authorization": "Bearer <token>"
  }
  params = {
      "projectId": "proj_123",
      "limit": 20,
      "offset": 0
  }

  response = requests.get(url, headers=headers, params=params)
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "success": true,
    "tools": [
      {
        "id": "tool_123",
        "name": "Data Validator",
        "description": "Validates input data",
        "language": "javascript",
        "enabled": true,
        "createdAt": "2024-01-15T10:30:00Z"
      },
      {
        "id": "tool_456",
        "name": "Email Parser",
        "description": "Parses email content",
        "language": "python",
        "enabled": true,
        "createdAt": "2024-01-14T09:20:00Z"
      }
    ],
    "total": 42,
    "hasMore": true,
    "nextOffset": 20,
    "message": "Tools retrieved successfully"
  }
  ```

  ```json Error Response theme={null}
  {
    "success": false,
    "message": "Unauthorized"
  }
  ```
</ResponseExample>
