> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# OpenAPI tool discovery status

`GET /api/v1/custom-providers/{provider_identifier}/tool-collection-runs/{run_id}`

Returns one tool collection run of a connector created from an OpenAPI spec: its status, counters and, once it has ended, the operations it skipped. Pass the `run_id` that [Discover OpenAPI tools](https://docs.scalekit.com/agentkit/reference/tools/invoke-openapi-tool-collection/) returned, or `latest` for the connector's most recent run, such as the one that creating the connector queued.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `provider_identifier` | string | Yes | The connector's `identifier` (`NAME:environment-id`), not its `id`. |
| `run_id` | string | Yes | The run's ID from Discover OpenAPI tools, or `latest` for the most recent run. |

**Response (200)**

| Name | Type | Description |
| --- | --- | --- |
| `created_at` | string | When the run was queued. |
| `error_message` | string | Why the run failed. Empty unless `status` is `FAILED`. |
| `finished_at` | string | When the run ended. |
| `provider_identifier` | string | Identifier of the connector the run belongs to. |
| `run_id` | string | ID of the run. |
| `skipped_tools_json` | string | JSON text listing the operations the run did not turn into tools. Empty until the run ends. |
| `started_at` | string | When the run started. |
| `status` | string | `QUEUED`, `PROCESSING`, `COMPLETED` or `FAILED`. |
| `tools_created` | integer | Number of tools the run created. |
| `tools_deleted` | integer | Number of tools the run deleted because their operation left the spec. |
| `tools_updated` | integer | Number of tools the run updated. |
| `total_endpoints` | integer | Number of operations found in the spec. |

**Errors**

- `400`: Invalid request - run_id is not a run ID
- `404`: Not Found - no such connector, no run yet, or no such run

**Request**

```bash
curl -sS -X GET \
  "$SCALEKIT_ENVIRONMENT_URL/api/v1/custom-providers/EXAMPLEAPI:12345/tool-collection-runs/tcr_153432495495315592" \
  -H "Authorization: Bearer $TOKEN"
```

**Response**

```json
{
  "run_id": "tcr_153432495495315592",
  "provider_identifier": "EXAMPLEAPI:12345",
  "status": "COMPLETED",
  "total_endpoints": 13,
  "tools_created": 12,
  "tools_updated": 0,
  "tools_deleted": 0,
  "skipped_tools_json": "[{\"operation_id\":\"headPets\",\"method\":\"HEAD\",\"path\":\"/pets\",\"reason\":\"HTTP method has no meaningful agent-callable action and is not converted (only GET/POST/PUT/PATCH/DELETE are)\"}]",
  "error_message": "",
  "created_at": "2026-11-02T10:15:04Z",
  "started_at": "2026-11-02T10:15:05Z",
  "finished_at": "2026-11-02T10:15:09Z"
}
```

**Python SDK:** `scalekit_client.actions.get_tool_collection_run`

Gets one tool collection run of a connector created from an OpenAPI spec. Poll it until the run is `COMPLETED` or `FAILED`.

```python
scalekit_client.actions.get_tool_collection_run(
    provider_identifier: str,
    run_id: str = 'latest',
) -> ToolCollectionRun
```

Example:

```python
run = scalekit_client.actions.get_tool_collection_run(
    provider_identifier="EXAMPLEAPI:12345",
    run_id="latest",
)
```

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `provider_identifier` | `str` | Yes | The connector's `identifier` (`NAME:environment-id`), not its `id`. |
| `run_id` | `str` | No | The run's ID from Discover OpenAPI tools, or `latest` for the most recent run. |

Returns `ToolCollectionRun`: The `ToolCollectionRun`.

**Node.js SDK:** `scalekit.actions.getToolCollectionRun`

Gets one tool collection run of a connector created from an OpenAPI spec. Poll it until the run is `COMPLETED` or `FAILED`.

```ts
scalekit.actions.getToolCollectionRun(
  params: {
    providerIdentifier: string;
    runId?: string;
  },
): Promise<ToolCollectionRun>
```

Example:

```ts
const result = await scalekit.actions.getToolCollectionRun({
  providerIdentifier: "EXAMPLEAPI:12345",
  runId: "latest",
});
```

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `providerIdentifier` | `string` | Yes | The connector's `identifier` (`NAME:environment-id`), not its `id`. |
| `runId` | `string` | No | The run's ID from Discover OpenAPI tools, or `latest` for the most recent run. |

Returns `Promise<ToolCollectionRun>`: The `ToolCollectionRun`.


Part of [Tools](https://docs.scalekit.com/agentkit/reference/tools/) in the [AgentKit API reference](https://docs.scalekit.com/agentkit/reference/). Authentication: https://docs.scalekit.com/agentkit/reference/authentication.md. Errors and rate limits: https://docs.scalekit.com/agentkit/reference/errors.md. Pagination: https://docs.scalekit.com/agentkit/reference/pagination.md


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
