Skip to main content
GET
List what references a set of tools

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Query Parameters

ids
string
required

A comma-separated list of tool referenceId values, with at most 100 distinct values. Repeated values collapse and don't count against the limit.

projectId
string
required

The unique identifier for the project.

Response

OK

items
object[]
total
integer

Total is the number of DISTINCT holders across every item — how many agents and skills a delete of all the requested tools would detach them from. It is deliberately none of the two things it could easily have been:

  • len(Items), which is what it used to be. Every requested id gets an entry, so that number is identical to Items' own length and carries no information at all, while the example:"2" beside it suggested a holder count. Redundant and misleading at once.
  • the SUM of each item's holders, which double-counts: one agent holding three of the requested tools would make "delete 3 tools, detaching from 1 agent" report 3.

Distinct is the number a delete confirmation wants, and it is correct for one requested tool and for many. Per-tool counts are already available as items[i].holders.length, so nothing is lost by not summing.

Example:

2