> This page is for Agent Handler.

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

# List standard entity rules (Tool Pack)

GET https://ah-api.merge.dev/api/v1/tool-packs/{tool_pack_id}/standard-entity-rules/

Returns standard entity rules for a tool pack, including organization defaults. Tool-pack-level rules take precedence where both exist.

Reference: https://docs.merge.dev/merge-agent-handler/agent-handler/standard-entity-rules/list-standard-entity-rules-tool-pack

## Authentication

- `Authorization` header (bearer token, required) — Token-based authentication with required prefix "Bearer"

## Request

### Path parameters

- `tool_pack_id` (string, required)

### Query parameters

- `defined_at` (string, optional) — Filter by where the rule is defined. Values: ORGANIZATION, TOOL_PACK.
- `page` (integer, optional) — A page number within the paginated result set.
- `page_size` (integer, optional) — Number of results to return per page.

## Response

### 200

- `count` (integer, required)
- `results` (list of PublicCombinedSecurityRule, required)
- `next` (string, optional, nullable)
- `previous` (string, optional, nullable)

## Types

### PublicCombinedSecurityRule

Standard entity rule with effective configuration for a tool pack.

- `entity_type` (string, required)
- `description` (string, required)
- `detection_method` (string, required)
- `is_active` (boolean, required)
- `outbound_action` (string, required)
- `defined_at` (string, required)
- `region` (string, optional)
- `org_is_active` (boolean, optional)
- `org_outbound_action` (string, optional)

## Examples

**Response**

```json
{
  "count": 123,
  "results": [
    {
      "entity_type": "string",
      "description": "string",
      "detection_method": "string",
      "is_active": true,
      "outbound_action": "string",
      "defined_at": "string",
      "region": "string",
      "org_is_active": true,
      "org_outbound_action": "string"
    }
  ],
  "next": "https://ah-api.merge.dev?page=4",
  "previous": "https://ah-api.merge.dev?page=2"
}
```

**SDK Code**

```python
import requests

url = "https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/"

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

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

print(response.json())
```

```javascript
const url = 'https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/"

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

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

	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://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/")

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

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

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://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://ah-api.merge.dev/api/v1/tool-packs/tool_pack_id/standard-entity-rules/")! 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()
```