Get Collection Statistics
get_collection_statsRetrieves statistics for a Bruno API collection, including request counts by method, folders, environments, and optional per-request details, with filters to narrow results.
Instructions
Get statistics about a Bruno collection — request counts by method, folders, environments, and per-request details including each request's file path and URL. environmentDetails lists each environment with the NAMES of the variables it declares, values withheld, so what an environment already defines is visible before merging into it with set_environment_variable. Use filePath values as entries in the requests list of run_collection.
SIZE: the per-request array is the bulk of the response and grows with the collection — a few hundred requests run to tens of kilobytes. Narrow it with folder, method or nameContains, or pass includeRequests: false for counts only. The counts always describe the WHOLE collection; a filtered call adds matchedRequests so the two cannot be confused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collectionPath": "<collectionPath>"
},
"name": "get_collection_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Report only requests in this folder, path relative to the collection root. Nested folders are included, so "auth" also matches "auth/oauth2". | |
| method | No | Report only requests with this method, case-insensitive. A request that has no method is bucketed under its kind, so "GRPC" and "WS" work here too. | |
| nameContains | No | Report only requests whose name contains this text, case-insensitive. | |
| collectionPath | Yes | Absolute path to collection directory. Use the path returned by list_collections. | |
| includeRequests | No | Set false to drop the per-request array and return only the counts, folders and environments. |