Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

get-application-list

Retrieve a paginated list of applications from the AdsPower browser management system to view and manage available browser profiles.

Instructions

Get the list of applications

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoThe size of the page

Implementation Reference

  • The handler function that implements the core logic of the 'get-application-list' tool. It makes an API request to fetch the list of applications using axios and formats the response as a JSON string.
    async getApplicationList({ size }: GetApplicationListParams) { const params = new URLSearchParams(); if (size) { params.set('page_size', size.toString()); } const response = await axios.get(`${LOCAL_API_BASE}${API_ENDPOINTS.GET_APPLICATION_LIST}`, { params }); return `Application list: ${JSON.stringify(response.data.data.list, null, 2)}`; }
  • The registration of the 'get-application-list' tool in the MCP server, linking the name, description, input schema, and handler function.
    server.tool('get-application-list', 'Get the list of applications', schemas.getApplicationListSchema.shape, wrapHandler(applicationHandlers.getApplicationList));
  • The Zod schema defining the input parameters for the 'get-application-list' tool, which includes an optional 'size' parameter for pagination.
    getApplicationListSchema: z.object({ size: z.number().optional().describe('The size of the page') }).strict(),

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