get_all_roles
List every distinct role classification in a repo with section counts and sample IDs. Identify available roles to construct accurate queries, with unknown sections grouped separately.
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. |