Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

get-application-list

Retrieve a paginated list of applications using the AdsPower LocalAPI MCP Server. Specify the page size to manage and access application data efficiently.

Instructions

Get the list of applications

Input Schema

NameRequiredDescriptionDefault
sizeNoThe size of the page

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "size": { "description": "The size of the page", "type": "number" } }, "type": "object" }

Implementation Reference

  • The main handler function for 'get-application-list' tool. It accepts optional 'size' parameter, constructs query params, fetches application list from local API, and returns formatted JSON string.
    export const applicationHandlers = { 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)}`; }
  • Zod schema defining input parameters for the 'get-application-list' tool, specifically optional 'size' number.
    getApplicationListSchema: z.object({ size: z.number().optional().describe('The size of the page') }).strict(),
  • Registration of the 'get-application-list' tool on the MCP server, linking name, description, schema, and wrapped handler.
    server.tool('get-application-list', 'Get the list of applications', schemas.getApplicationListSchema.shape, wrapHandler(applicationHandlers.getApplicationList));
  • TypeScript interface for input parameters of getApplicationList handler, matching the Zod schema.
    export interface GetApplicationListParams { size?: number;

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