---
title: "Get Tool Usage Logs"
method: GET
path: "/v1/tool/{tool_name}/logs"
tags: ["tools"]
---

# Get Tool Usage Logs

`GET /v1/tool/{tool_name}/logs`

Return paginated spend logs for requests that invoked this tool (from SpendLogToolIndex).
Declaring a tool in a request body without the model invoking it does not create an entry.

## Path parameters

- `tool_name` string, required

## Query parameters

- `page` integer
- `page_size` integer
- `start_date` string, nullable — YYYY-MM-DD
- `end_date` string, nullable — YYYY-MM-DD

## Response `200`

Successful Response

- ToolUsageLogsResponse
  - `logs` ToolUsageLogEntry[], required
    - `id` string, required
    - `input_snippet` string, nullable
    - `model` string, nullable
    - `spend` number, nullable
    - `timestamp` string, required
    - `total_tokens` integer, nullable
  - `page` integer, required
  - `page_size` integer, required
  - `total` integer, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-22** `c71315002afa` — 2 info
  - api tag `tools` added
  - api tag `tool management` removed
- **2026-09-21** `6246f8d427b7` — 2 info
  - api tag `tool management` added
  - api tag `tools` removed
- **2026-09-19** `c357baf422ab` — 2 info
  - api tag `tools` added
  - api tag `tool management` removed
- **2026-09-18** `082b5fabd909` — 4 info
  - api tag `tool management` added
  - api tag `tools` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-09-16** `7afc3544d64d` — 2 info
  - api tag `tools` added
  - api tag `tool management` removed

[Full history](https://skmtc.dev/flock/apis/litellm-api/changes/v1/tool/:tool_name/logs/get.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/7ed45f30a5f0?raw)
