# create_site, list_sites, update_site, delete_site (/mcp/sites)



A site is a public key for [Identify](/identify)'s snippet. An agent creates one, adds the `snippet` to the user's pages, and reads the visits with [`list_sessions`](/mcp/sessions). All four tools are free; each session a site starts is one identification, [$0.001](/pricing#identify).

## create\_site [#create_site]

Creates a site, as [`POST /v1/identify/sites`](/reference/identify/create-site).

| Input     | Description                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------- |
| `name`    | A few words naming the site. Up to 100 characters                                                                |
| `origins` | The addresses whose pages may report, like `https://www.example.com`. Up to 20. None takes reports from any page |
| `api_key` | `/mcp/keys` only                                                                                                 |

Returns the site's `id`, `name`, `key` (`gpk_…`, public), `origins`, `created_at` and `snippet`: the script tag for the `<head>` of every page. Up to 50 sites per organization.

## list\_sites [#list_sites]

No inputs. Read-only. Returns `sites`, oldest first, as [`GET /v1/identify/sites`](/reference/identify/list-sites).

## update\_site [#update_site]

Renames a site or replaces its origins, as [`PATCH /v1/identify/sites/{id}`](/reference/identify/update-site).

| Input     | Description                                                                               |
| --------- | ----------------------------------------------------------------------------------------- |
| `site_id` | Required. The site's `id`                                                                 |
| `name`    | The new name. Left out, it stays                                                          |
| `origins` | The new list, replacing the old one. Left out, it stays; `[]` takes reports from any page |
| `api_key` | `/mcp/keys` only                                                                          |

Returns the site.

## delete\_site [#delete_site]

Deletes a site, as [`DELETE /v1/identify/sites/{id}`](/reference/identify/delete-site). Its key stops working at once and can't be restored, so the agent should confirm with the user first. Its sessions leave `list_sessions` and can be read by id until they're 30 days old.

| Input     | Description               |
| --------- | ------------------------- |
| `site_id` | Required. The site's `id` |
| `api_key` | `/mcp/keys` only          |
