list_teams
Search for Grafana teams using a query string to find and retrieve detailed information about matching teams within your Grafana instance.
Instructions
Search for Grafana teams by a query string. Returns a list of matching teams with details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | The query to search for teams |
Implementation Reference
- GrafanaClient method that performs the API call to /api/teams/search with optional query parameter, used by the tool handler.
async listTeams(query?: string): Promise<Team[]> { try { const response = await this.client.get('/api/teams/search', { params: { query }, }); return response.data.teams; } catch (error) { this.handleError(error); } }