list_labels
Retrieve a list of resource labels with their metadata to view label configurations.
Instructions
Use this when the user wants to see their resource labels or label configurations. Returns a list of labels with their metadata. Do NOT use this for annotations (use list_annotations) or label assignments (use get_label_assignments).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | An expression for filtering the results. Valid fields: name, type. Example: name:budget | |
| sortBy | No | A field by which the results will be sorted. Accepted values: id, name, type, createTime, updateTime. | |
| pageToken | No | Page token, returned by a previous call, to request the next page of results. | |
| sortOrder | No | The sort order for results. Accepted values: asc, desc. | |
| maxResults | No | The maximum number of results to return in a single page. Defaults to 500. |