# Search project definitions

Tool: `veryfront__search_project_definitions`

Search project source definitions by ID or display name.

## Arguments

| Name                    | Type                                    | Required | Description                                                                                                                                                                                                                                                                                                        |
| ----------------------- | --------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `runtime_target_kind`   | string \| null                          |          | Provide the runtime target kind.                                                                                                                                                                                                                                                                                   |
| `target_environment_id` | string · uuid \| null                   |          | Provide the target environment id.                                                                                                                                                                                                                                                                                 |
| `target_branch_id`      | string · uuid \| null                   |          | Provide the target branch id.                                                                                                                                                                                                                                                                                      |
| `source_target_kind`    | string                                  |          | Provide the source target kind. One of `project`, `main_branch`, `environment`, `preview_branch`.                                                                                                                                                                                                                  |
| `identity`              | string · min length 1 · max length 4096 |          | Exact definition ID or display name. Omit to browse.                                                                                                                                                                                                                                                               |
| `kinds`                 | array of string                         |          | Source definition kinds to inspect. Display names do not establish kind. When the kind is unknown, omit this filter to inspect all source kinds; coverage reports access and completeness for each kind. One of `agent`, `prompt`, `tool`, `task`, `workflow`, `resource`, `skill`, `eval`, `schedule`, `webhook`. |
| `limit`                 | integer · min 1 · max 50                |          | Maximum number of results to return.                                                                                                                                                                                                                                                                               |
| `cursor`                | string · min length 1 · max length 512  |          | Opaque pagination cursor returned by a previous response.                                                                                                                                                                                                                                                          |
| `project_reference`     | string · min length 1                   |          | Project identifier or slug that scopes the tool call.                                                                                                                                                                                                                                                              |

## 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__search_project_definitions",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"kind\":\"agent\",\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"source_path\":\"string\",\"reader\":{\"operation\":\"string\",\"identity_parameter\":\"string\",\"identity\":\"string\"},\"reader_unavailable_reason\":\"string\"}],\"total_matches\":0,\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"},\"resolution\":\"listed\",\"suggested_query\":{\"project_reference\":\"string\",\"identity\":\"string\",\"source_target_kind\":\"project\",\"target_environment_id\":\"string\",\"target_branch_id\":\"string\"},\"kind_filter_miss\":{\"requested_kinds\":[\"agent\"]},\"coverage\":[{\"kind\":\"agent\",\"status\":\"complete\",\"diagnostic_count\":0,\"diagnostics\":[{\"kind\":\"source_file_diagnostic\",\"source_kind\":\"agent\",\"source_path\":\"string\",\"source_id\":\"string\",\"code\":\"parse_error\",\"message\":\"string\",\"details\":{}}]}],\"source_selection\":{\"project_id\":\"string\",\"source_target_kind\":\"project\",\"target_environment_id\":\"string\",\"target_branch_id\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "kind": "agent",
          "id": "string",
          "name": "string",
          "description": "string",
          "source_path": "string",
          "reader": {
            "operation": "string",
            "identity_parameter": "string",
            "identity": "string"
          },
          "reader_unavailable_reason": "string"
        }
      ],
      "total_matches": 0,
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      },
      "resolution": "listed",
      "suggested_query": {
        "project_reference": "string",
        "identity": "string",
        "source_target_kind": "project",
        "target_environment_id": "string",
        "target_branch_id": "string"
      },
      "kind_filter_miss": {
        "requested_kinds": [
          "agent"
        ]
      },
      "coverage": [
        {
          "kind": "agent",
          "status": "complete",
          "diagnostic_count": 0,
          "diagnostics": [
            {
              "kind": "source_file_diagnostic",
              "source_kind": "agent",
              "source_path": "string",
              "source_id": "string",
              "code": "parse_error",
              "message": "string",
              "details": {}
            }
          ]
        }
      ],
      "source_selection": {
        "project_id": "string",
        "source_target_kind": "project",
        "target_environment_id": "string",
        "target_branch_id": "string"
      }
    }
  }
}
```
