Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

get-group-list

Retrieve and manage browser profile groups from AdsPower LocalAPI, enabling search by name with pagination support for efficient organization.

Instructions

Get the list of groups

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNameNoThe name of the group to search, use like to search, often used group name to find the group id, so eg: "test" will search "test" and "test1"
sizeNoThe size of the page, max is 100, if get more than 100, you need to use the page to get the next page, default is 10
pageNoThe page of the group, default is 1

Implementation Reference

  • The handler function that implements the logic for the 'get-group-list' tool by making an API request to fetch the list of groups based on optional filters (groupName, size, page).
    async getGroupList({ groupName, size, page }: GetGroupListParams) { const params = new URLSearchParams(); if (groupName) { params.set('group_name', groupName); } if (size) { params.set('page_size', size.toString()); } if (page) { params.set('page', page.toString()); } const response = await axios.get(`${LOCAL_API_BASE}${API_ENDPOINTS.GET_GROUP_LIST}`, { params }); return `Group list: ${JSON.stringify(response.data.data.list, null, 2)}`; }
  • Zod schema defining the input parameters for the 'get-group-list' tool.
    getGroupListSchema: z.object({ groupName: z.string().optional().describe('The name of the group to search, use like to search, often used group name to find the group id, so eg: "test" will search "test" and "test1"'), size: z.number().optional().describe('The size of the page, max is 100, if get more than 100, you need to use the page to get the next page, default is 10'), page: z.number().optional().describe('The page of the group, default is 1') }).strict(),
  • Registration of the 'get-group-list' tool on the MCP server, linking the name, description, schema, and wrapped handler.
    server.tool('get-group-list', 'Get the list of groups', schemas.getGroupListSchema.shape, wrapHandler(groupHandlers.getGroupList));

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/AdsPower/local-api-mcp-typescript'

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