> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Diagnostics

> See which models your inference spend goes to, and find the tools that fail most often.

The **Diagnostics** page shows which models your inference spend goes to, and how the tools of your agent sessions fail, in a time range. Use it to compare models by cost, cache hit rate, and speed, or to find the tool calls that fail.

## Before you begin

* You need **View Own Sessions** to open **Diagnostics**.
* With **View Team Activity**, the page covers the sessions of all users. Without it, it covers only your own sessions.

See [Default roles](https://docs.agent.golf/account/users.md#default-roles) for the roles that include these permissions.

## What the page shows

Open **Agents > Diagnostics** in the sidebar, then choose a time range. The page has three tabs: **Models**, **Tool Failures**, and **Tools**.

### Models

**Model Usage** shows one row for each model:

| Column | What it shows |
| - | - |
| **Model** | The model and its provider. Each links to its catalog page when the catalog lists it. |
| **Tokens** | The request count, the input, output, and reasoning tokens, and the cache hit rate. See [Token usage](https://docs.agent.golf/dashboard/sessions.md#token-usage). |
| **Performance** | The output throughput (tok/s), the mean TTFT (time to first token), and the **Request Error Rate**. |
| **Cost** | The known cost of the model's requests. See [Cost and the model catalog](https://docs.agent.golf/dashboard/sessions.md#cost-and-the-model-catalog). |
| **Trend** | The model's requests in each period of the time range. |

**Request Error Rate** counts the model requests that returned an error. It does not count tool failures.

**View in Diagnostics** on the [Model Mix](https://docs.agent.golf/dashboard/team.md#model-mix) card of the **Team** page or a user page opens this tab.

### Tool Failures

The tiles show the **Tool Failure Rate**, the **Tool Failures**, the **Affected Sessions**, and the **Error Categories** (the number of tools that failed).

* **Repeated Failures**: one row for each tool that failed, with its **Failures**, **Affected Sessions**, and the time of the **Latest** failure.
* **Recent Failures**: the latest failed tool calls, with the model, the provider, the tool, and the session ID. Select a row to open the session at that failure. A row that shows **Explorer unavailable** is a session that you cannot open.

When no tool call failed in the time range, the tab shows **No tool failures**. When the sessions made no tool calls, it shows **No tool calls**.

### Tools

The tiles show the **Tool Failure Rate**, the **Tool Calls**, and the **Tools Used**.

* **Tool Failure Rate Over Time**: the failed calls divided by all calls in each period. A period without tool calls has no bar.
* **Top Tools**: up to ten tools, with their **Calls**, **Failures**, and **Failure Rate**.

## Find the tool that fails most

1. Open **Diagnostics** and choose the time range.
2. Open **Tool Failures**.
3. In **Repeated Failures**, sort by **Failures**. The top row is the tool that failed most often.
4. In **Recent Failures**, select a row for that tool to open the failed call in its session.

To see whether the failures are new, open **Tools** and read **Tool Failure Rate Over Time**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.