---
title: "Search tool calls"
method: GET
path: "/v1/admin/tool-calls"
tags: ["admin"]
---

# Search tool calls

`GET /v1/admin/tool-calls`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/admin/tool-calls`
- Auth: HTTP bearer

List tool calls with filtering, sorting, and pagination.

## Query parameters

- `q` string, nullable: ANTLR filter expression
- `limit` integer, nullable: Page size
- `sort_by` string, nullable: Sort expression (e.g. created_at:desc)
- `fields` string, nullable: Field projection (e.g. id,name)
- `pq` string, nullable: Pagination cursor query
- `from_prev` boolean: Backward pagination flag

## Response `200`

Paginated tool call list.

- ModelsRunToolCallSearchValidator: Typed cursor-paginated tool-call list response.
  - `items` ModelsRunToolCallFullValidator[], required
    - `id` string, uuid, nullable
    - `tenant_id` string, uuid, nullable
    - `run_id` string, uuid, nullable
    - `tool_name` string, nullable
    - `kind_code` string, nullable
    - `risk_tier_code` string, nullable
    - `input` object, nullable: Tool arguments, sanitized. Present only for callers holding runs:execute; null for read-only callers, which receive input_summary instead. Null with no input_summary means the call had no stored arguments.
    - `input_summary` ArgSummaryEntry[], nullable: Value-free per-argument summary, populated in place of input for callers without runs:execute.
      - `key` string, required: Argument name (schema-level, never customer data).
      - `type` string, required: JSON type of the hidden value: string, number, boolean, object, array, or null.
      - `size` integer, nullable: Size of the hidden value: characters for a string, item count for an array, key count for an object. Null for other scalars, and always null for a credential-named argument.
    - `output` object, nullable: Tool result, sanitized like input: visible (control-token-stripped, size-capped) only for callers holding runs:execute, null for read-only callers. Results often echo the arguments, so they follow the same visibility rule.
    - `status_code` string, nullable
    - `duration_ms` integer, nullable
    - `error` string, nullable: Failure diagnostic, sanitized like input: visible only for callers holding runs:execute, null for read-only callers. Error messages routinely quote the failing call's arguments, so they follow the same visibility rule.
    - `created_at` string, date-time, nullable
  - `first` string, nullable
  - `next` string, nullable
  - `previous` string, nullable

## Other responses

- `401`: Unauthorized
- `403`: Permission denied (PERMISSION_DENIED) or email not verified (EMAIL_NOT_VERIFIED)
- `422`: Validation error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
