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

# Get tool parameter stats

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

Returns the most common top-level input keys and their most common values for the tool, computed over a sample of the most recent calls in the range.

## 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.
- `topKeys` integer — Maximum number of keys to return.
- `topValuesPerKey` integer — Maximum number of values to return per key.
- `errorsOnly` 'true' | 'false' — When `true`, scope every aggregate to failed calls only.

## Response `200`

Parameter stats

- ToolParameterStatsResponse
  - `stats` ToolParameterStat[], required — Top input keys and their most common values.
    - `key` string, required — A top-level key in the tool's input.
    - `occurrences` integer, required — Sampled calls whose input contains this key.
    - `topValues` ToolParameterValueStat[], required — Most common values for this key.
      - `value` string, required — A value seen for the key (truncated).
      - `count` integer, required — Number of sampled calls with this value.
  - `sampleSize` integer, required — Number of recent calls the stats were computed over.

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