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
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_teams"
}
}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); } }