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

# Get tool context breakdown

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

Returns where the tool is used, broken down by a dimension: `model` and `provider` attribute the tool's traces via their chat spans; `tag` reads tags on the tool-call spans themselves.

## 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.
- `dimension` 'model' | 'provider' | 'tag', required — Dimension to break the usage down by.
- `errorsOnly` 'true' | 'false' — When `true`, scope every aggregate to failed calls only.

## Response `200`

Context breakdown

- ToolContextBreakdownResponse
  - `items` ToolContextBreakdownRow[], required — Breakdown rows, most significant first.
    - `value` string, required — The dimension value (a model, provider, or tag).
    - `traces` integer, required — Distinct traces for this value.
    - `occurrences` integer, required — Underlying spans or calls behind this value.

## 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)
