get_teams
Retrieve teams from Devici with pagination controls to manage and organize security team data efficiently.
Instructions
Get teams from Devici with pagination
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| page | No |
Implementation Reference
- src/devici_mcp_server/server.py:196-201 (handler)MCP tool handler and registration for 'get_teams'. This function is decorated with @mcp.tool() and delegates to the API client's get_teams method.@mcp.tool() async def get_teams(limit: int = 20, page: int = 0) -> str: """Get teams from Devici with pagination""" async with create_client_from_env() as client: result = await client.get_teams(limit=limit, page=page) return str(result)
- Core implementation of get_teams in DeviciAPIClient class. Makes authenticated GET request to the /teams/ API endpoint with pagination parameters.async def get_teams(self, limit: int = 20, page: int = 0) -> Dict[str, Any]: """Get all teams.""" params = {"limit": limit, "page": page} return await self._make_request("GET", "/teams/", params=params)