---
title: "Get tool error breakdown"
method: GET
path: "/v1/projects/{projectSlug}/tools/{toolName}/errors"
tags: ["Tools"]
---

# Get tool error breakdown

`GET /v1/projects/{projectSlug}/tools/{toolName}/errors`

Returns the most common error outputs of the tool's failed calls, grouped into clusters by a normalized form so variable fragments don't split one error into many buckets.

## Path parameters

- `projectSlug` string, required — Project slug (human-readable identifier)
- `toolName` string, required — Tool name. URL-encode names containing special characters.

## Query parameters

- `fromIso` string, date-time — Lower bound (inclusive) of the time range. Defaults to 7 days before `toIso`.
- `toIso` string, date-time — Upper bound (inclusive) of the time range. Defaults to now.
- `limit` integer — Maximum number of clusters to return.

## Response `200`

Error breakdown

- ToolErrorBreakdownResponse
  - `items` ToolErrorBreakdownRow[], required — Error clusters, most frequent first.
    - `key` string, required — Normalized error cluster key. Empty when the calls carried no error output.
    - `sample` string, required — A verbatim error output from the cluster (truncated).
    - `errorType` string, required — An error type seen in the cluster.
    - `calls` integer, required — Number of failed calls in the cluster.

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/latitude-dev/apis/latitude.md) · [All operations](https://skmtc.net/latitude-dev/apis/latitude/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/latitude-dev/latitude/versions/6a8789c59a5c/schema)
