# Get project by domain

Tool: `veryfront__get_project_by_domain`

Find a project by domain. Requires project.read.

## Arguments

| Name     | Type   | Required | Description                                                                                                                             |
| -------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `domain` | string | Yes      | Custom domain to look up (e.g., mysite.com). Returns the owning project and environment, as used for JIT rendering of production sites. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__get_project_by_domain",
    "arguments": {
      "domain": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"project_id\":\"string\",\"project_slug\":\"string\",\"project_name\":\"string\",\"environment_id\":\"string\",\"environment_name\":\"string\",\"release_id\":\"string\"}"
      }
    ],
    "structuredContent": {
      "project_id": "string",
      "project_slug": "string",
      "project_name": "string",
      "environment_id": "string",
      "environment_name": "string",
      "release_id": "string"
    }
  }
}
```
