Skip to main content
Glama

get_teams

Retrieve team data from Devici API with pagination support. Specify page and limit parameters to manage large datasets efficiently.

Instructions

Get teams from Devici with pagination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
pageNo

Implementation Reference

  • MCP tool handler for 'get_teams'. This function is decorated with @mcp.tool(), registering it as an MCP tool. It fetches teams via the API client and returns the result as a 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)
  • Helper function in the API client that performs the HTTP GET request to the '/teams/' endpoint to retrieve teams data.
    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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/geoffwhittington/devici-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server