Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

get-browser-list

Retrieve browser profiles from AdsPower with filtering, sorting, and pagination options to manage and organize browser instances.

Instructions

Get the list of browsers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupIdNoThe group id of the browser, must be a numeric string (e.g., "123"). You can use the get-group-list tool to get the group list
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 browser, default is 1
idNoThe id of the browser
serialNumberNoThe serial number of the browser
sortNoThe sort of the browser
orderNoThe order of the browser

Implementation Reference

  • The handler function that implements the core logic of the 'get-browser-list' tool by querying the API for browser list and returning formatted JSON.
    async getBrowserList(params: GetBrowserListParams) {
        const { groupId, size, id, serialNumber, sort, order, page } = params;
        const urlParams = new URLSearchParams();
        if (size) {
            urlParams.set('page_size', size.toString());
        }
        if (page) {
            urlParams.set('page', page.toString());
        }
        if (id) {
            urlParams.set('user_id', id);
        }
        if (groupId) {
            urlParams.set('group_id', groupId);
        }
        if (serialNumber) {
            urlParams.set('serial_number', serialNumber);
        }
        if (sort) {
            urlParams.set('user_sort', JSON.stringify({
                [sort]: order || 'asc',
            }));
        }
    
        const response = await axios.get(`${LOCAL_API_BASE}${API_ENDPOINTS.GET_BROWSER_LIST}`, { params: urlParams });
        return `Browser list: ${JSON.stringify(response.data.data.list, null, 2)}`;
    },
  • Zod schema defining the input parameters for the 'get-browser-list' tool.
    getBrowserListSchema: z.object({
        groupId: z.string()
            .regex(/^\d+$/, "Group ID must be a numeric string")
            .optional()
            .describe('The group id of the browser, must be a numeric string (e.g., "123"). You can use the get-group-list tool to get the group list'),
        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 browser, default is 1'),
        id: z.string().optional().describe('The id of the browser'),
        serialNumber: z.string().optional().describe('The serial number of the browser'),
        sort: z.enum(['serial_number', 'last_open_time', 'created_time']).optional()
            .describe('The sort of the browser'),
        order: z.enum(['asc', 'desc']).optional()
            .describe('The order of the browser')
    }).strict(),
  • Registration of the 'get-browser-list' tool on the MCP server, linking name, description, schema, and handler.
    server.tool('get-browser-list', 'Get the list of browsers', schemas.getBrowserListSchema.shape,
        wrapHandler(browserHandlers.getBrowserList));
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but lacks behavioral details. It doesn't disclose that this is a read-only operation (implied by 'get'), pagination behavior (beyond schema hints), rate limits, authentication needs, or what the return format looks like (no output schema). The description adds no meaningful context beyond the basic action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's appropriately sized for a simple tool and front-loaded with the core action, though it lacks depth due to under-specification rather than verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, pagination, filtering), no annotations, and no output schema, the description is incomplete. It fails to explain key behaviors like pagination mechanics, filtering logic, or return structure, leaving significant gaps for an AI agent to infer usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 7 parameters. The description adds no parameter semantics beyond what's in the schema (e.g., it doesn't explain relationships like 'groupId' filtering or 'size/page' pagination). Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get the list of browsers' states the basic action (get) and resource (browsers), but it's vague about scope and functionality. It doesn't specify whether this retrieves all browsers, filtered browsers, or paginated results, nor does it differentiate from sibling tools like 'get-opened-browser' or 'get-application-list'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites (e.g., needing a group ID from 'get-group-list'), exclusions, or contextual cues for selection among sibling tools like 'get-opened-browser' or 'get-application-list'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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