User guide

Tool calls

Updated November 12, 2026 · 4 min read

The Tool calls page shows which tools your AI apps called, with the LLM model and the MCP server behind each call. CrystalBrain only sees the calls that your apps report to it. It has no way to observe the tools of another app on its own, so the page stays empty until an app sends its first call.

Reporting calls

There are two ways to report a call.

  • REST API. Send POST /api/v1/tool-calls with an API key. One request reports one call, or up to 100 calls in a calls array.
  • MCP. An assistant connected through the MCP link, such as Claude, calls the tool tool_call_log once per tool it used.

A call is described by tool (the tool’s name) and, optionally, model, mcp_server, status (ok or error), duration_ms and called_at. The request can also name the user (your customer’s ID or name), the brain the work was about and your app. The answer is the number of calls recorded.

Three details affect what you see on the page:

  • The date of a call is called_at when it is a valid date that is not in the future. Otherwise it is the time CrystalBrain received the call.
  • A user or a brain that does not exist is never created by a report. The call is recorded without it.
  • The MCP tool takes no duration. Calls reported that way count in Calls and Errors but have no duration.
POST /api/v1/tool-calls
{ "user": "cus_123", "app": "support-bot",
  "calls": [
    { "tool": "search_orders",
      "model": "claude-sonnet-5-5",
      "mcp_server": "shopify",
      "status": "ok", "duration_ms": 420 },
    { "tool": "send_email", "status": "error" }
  ] }
{ "logged": 2 }
Two calls reported in one request through the REST API, and the answer (example data).

The same instructions are in Connections, on the Other apps tab under “Let your apps report their tool calls”. Every field is listed in the API reference.

Period and filters

Three buttons set the period: Last 7 days, Last 30 days (the default) and Last 90 days. Under them, four filters narrow the calls:

  • a search box that looks in tool names, models and MCP servers,
  • an end user,
  • an app, among the apps that reported calls in the period,
  • a status: Any status, OK or Error.

The period and the filters apply to every tab and to the four figures above the tables: calls, tools, LLM models and errors.

Tools, LLM models and MCP servers

The first three tabs group the same calls in three ways: by tool name, by model and by MCP server. Each table shows up to 50 rows with the same columns.

  • Calls: the number of calls in the period.
  • Errors: the calls reported with the status error.
  • Median duration: half of the calls took less than this. It is calculated from the duration_ms your apps sent.
  • 95th percentile: 95 calls out of 100 took less than this. It shows how slow the slowest calls are, which you cannot see from the median.
  • Last call: the date of the most recent call.

Durations are written in milliseconds under one second and in seconds above. A dash means that no call of the row came with a duration. A call reported without a status counts in Calls and in neither OK nor Error.

Tool callsLast 30 days
calls1284
tools3
LLM models2
errors17
Tool nameCallsMedian duration95th percentile
search_orders902420 ms1.8 s
send_email310650 ms2.4 s
memory_search72––
The Tools tab over the last 30 days, with example figures.

Latest calls

The fourth tab lists single calls, the most recent first, with these columns: When, Tool, Model, MCP server, End user, Brain, App and Status. It shows up to 500 calls. When the period holds more, the line above the table says how many are shown out of the total; shorten the period or add a filter to reach the others. A filter searches the 5,000 most recent calls of the period only: when the period holds that many or more, the line says so, and a shorter period reaches the older ones.

This tab is also where you remove calls, for example test calls sent while you were setting up an app. Tick the calls, or use the checkbox in the header to tick every call shown, then click Archive selected. Archived calls leave the page and are no longer counted in its figures.

The page has no list of archived calls and no restore button. The calls are not deleted: the analytics endpoint of the API (GET /api/v1/analytics, kind tool_calls) still returns them for the end user they were recorded for.

The Tool calls page shows what your apps did. To see what they read from memory and how well it matched, open Insights.

Free up to 25 tracked users, no card.

Start free