get_teams
Retrieve teams from the Devici platform with pagination support to manage threat modeling resources efficiently.
Instructions
Get teams from Devici with pagination
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": "get_teams"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:196-201 (handler)MCP tool handler for 'get_teams': decorated with @mcp.tool(), fetches teams via API client and returns as string.
@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) - API client helper method that performs the HTTP GET request to retrieve teams from the Devici API.
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)