Blue Guardrails

Get Agent Tool Stats

Get per-tool call distribution and hallucination counts.

GET
/v1/analytics/agent-tool-stats

Query Parameters

start*string

Start of time range (inclusive)

Formatdate-time
end*string

End of time range (exclusive)

Formatdate-time

Header Parameters

x-workspace-id?|

Workspace UUID to operate within. Required for session auth and user-scoped API keys. Optional for workspace-scoped API keys (uses key's workspace if omitted).

Response Body

application/json

application/json

curl -X GET "https://loading/v1/analytics/agent-tool-stats?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z"
{
  "tools": [
    {
      "tool_name": "string",
      "call_count": 0,
      "hallucinated_count": 0,
      "conversation_share": 0,
      "top_label": "string"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}