Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

update-browser

Modify browser profile settings in AdsPower, including domain, cookies, proxy configuration, fingerprint parameters, and group assignments.

Instructions

Update the browser

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNameNoThe domain name of the browser, eg: facebook.com
openUrlsNoThe open urls of the browser, eg: ["https://www.google.com"]
cookieNoThe cookie of the browser, eg: "[{"domain":".baidu.com","expirationDate":"","name":"","path":"/","sameSite":"unspecified","secure":true,"value":"","id":1}]"
usernameNoThe username of the browser, eg: "user"
passwordNoThe password of the browser, eg: "password"
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 or create a new group
nameNoThe name of the browser, eg: "My Browser"
countryNoThe country of the browser, eg: "CN"
sysAppCateIdNoThe sys app cate id of the browser, you can use the get-application-list tool to get the application list
userProxyConfigNoThe user proxy config of the browser
fingerprintConfigNoThe fingerprint config of the browser, default is automatic_timezone: 0, timezone: "", language: [], flash: "", fonts: [], webrtc: disabled, browser_kernel_config: ua_auto, random_ua: ua_version: [], ua_system_version: [], tls_switch: 0, tls: ""
storageStrategyNoThe storage strategy of the browser, default is 0
userIdYesThe user id of the browser to update, it is required when you want to update the browser

Implementation Reference

  • The core handler function that implements the logic for updating a browser by sending a POST request to the backend API endpoint with the provided parameters, handling success and error responses.
    async updateBrowser(params: UpdateBrowserParams) {
        const requestBody = buildRequestBody({
            ...params
        });
        requestBody.user_id = params.userId;
    
        const response = await axios.post(`${LOCAL_API_BASE}${API_ENDPOINTS.UPDATE_BROWSER}`, requestBody);
        
        if (response.data.code === 0) {
            return `Browser updated successfully with: ${Object.entries(response.data.data).map(([key, value]) => `${key}: ${value}`).join('\n')}`;
        }
        throw new Error(`Failed to update browser: ${response.data.msg}`);
    },
  • Registration of the 'update-browser' tool in the MCP server, specifying name, description, input schema, and the wrapped handler function.
    server.tool('update-browser', 'Update the browser', schemas.updateBrowserSchema.shape,
        wrapHandler(browserHandlers.updateBrowser));
  • Zod schema defining the input parameters for the 'update-browser' tool, including optional fields like domainName, openUrls, cookie, etc., and required userId.
    updateBrowserSchema: z.object({
        domainName: z.string().optional().describe('The domain name of the browser, eg: facebook.com'),
        openUrls: z.array(z.string()).optional().describe('The open urls of the browser, eg: ["https://www.google.com"]'),
        cookie: z.string().optional().describe('The cookie of the browser, eg: "[{\"domain\":\".baidu.com\",\"expirationDate\":\"\",\"name\":\"\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":true,\"value\":\"\",\"id\":1}]"'),
        username: z.string().optional().describe('The username of the browser, eg: "user"'),
        password: z.string().optional().describe('The password of the browser, eg: "password"'),
        groupId: z.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 or create a new group'),
        name: z.string().optional().describe('The name of the browser, eg: "My Browser"'),
        country: z.string().optional().describe('The country of the browser, eg: "CN"'),
        sysAppCateId: z.string().optional().describe('The sys app cate id of the browser, you can use the get-application-list tool to get the application list'),
        userProxyConfig: userProxyConfigSchema.optional(),
        fingerprintConfig: fingerprintConfigSchema.optional(),
        storageStrategy: z.number().optional().describe('The storage strategy of the browser, default is 0'),
        userId: z.string().describe('The user id of the browser to update, it is required when you want to update the browser')
    }),
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. 'Update the browser' implies a mutation operation but reveals nothing about permissions required, whether updates are partial or complete, what happens to unspecified fields, error conditions, or side effects. For a complex 13-parameter mutation tool, this complete lack of behavioral context is severely inadequate.

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 consists of just three words - 'Update the browser' - making it extremely concise. There's no wasted language or unnecessary elaboration. While the content is inadequate, the form is maximally efficient with every word serving the core message (however limited that message may be).

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

Completeness1/5

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

Given the tool's complexity (13 parameters including nested objects), lack of annotations, and absence of an output schema, the description is completely inadequate. It fails to explain what 'updating a browser' means in this context, what the operation affects, what permissions are needed, or what the expected outcome is. The description provides essentially no useful context for the agent.

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 already documents all 13 parameters thoroughly with descriptions, examples, and constraints. The description adds zero parameter information beyond what's in the schema. According to scoring rules, when schema coverage is high (>80%), the baseline is 3 even with no parameter information in the description.

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

Purpose1/5

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

The description 'Update the browser' is a tautology that merely restates the tool name 'update-browser'. It provides no specific information about what aspects of a browser are updated, what resources are involved, or how this differs from sibling tools like 'create-browser' or 'update-group'. This minimal description fails to communicate the tool's actual function.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (like needing a browser ID), when this tool is appropriate versus creating a new browser, or how it relates to sibling tools like 'update-group'. The agent receives zero contextual usage information from the description.

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