get_all_roles
List all distinct role classifications in a repository with section counts and sample IDs, helping identify available roles before building role- or profile-based queries.
Instructions
v1.50+ — list every distinct role classification across the repo with per-role section counts and id samples. Companion to v1.46 get_all_tags. Sections without metadata.role are bucketed under 'unknown'. Use to discover what roles exist before constructing a role= or profile= query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier | |
| sample_size | No | How many section_ids to surface per role. 0 omits samples. |