Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

create-group

Create a browser group to organize and manage multiple browser profiles with custom fingerprints for efficient testing and automation workflows.

Instructions

Create a browser group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNameYesThe name of the group to create
remarkNoThe remark of the group

Implementation Reference

  • The createGroup handler function that constructs a request body and makes a POST API call to create a browser group, returning success message or throwing error.
    async createGroup({ groupName, remark }: CreateGroupParams) {
        const requestBody: Record<string, string> = {
            group_name: groupName
        };
        
        if (remark !== undefined) {
            requestBody.remark = remark;
        }
    
        const response = await axios.post(`${LOCAL_API_BASE}${API_ENDPOINTS.CREATE_GROUP}`, requestBody);
        
        if (response.data.code === 0) {
            return `Group created successfully with name: ${groupName}${remark ? `, remark: ${remark}` : ''}`;
        }
        throw new Error(`Failed to create group: ${response.data.msg}`);
    },
  • Zod schema defining input parameters for create-group tool: groupName (required string), remark (optional string).
    createGroupSchema: z.object({
        groupName: z.string().describe('The name of the group to create'),
        remark: z.string().optional().describe('The remark of the group')
    }).strict(),
  • Registration of the 'create-group' tool on the MCP server, specifying name, description, input schema, and wrapped handler.
    server.tool('create-group', 'Create a browser group', schemas.createGroupSchema.shape,
        wrapHandler(groupHandlers.createGroup));
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. While 'Create' implies a write/mutation operation, the description doesn't specify permissions required, whether the operation is idempotent, what happens on duplicate group names, or what the response looks like (e.g., success confirmation or group ID). This is a significant gap for a creation tool with zero annotation coverage.

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 wasted words. It's front-loaded with the core purpose and appropriately sized for a simple creation tool, earning full marks for conciseness.

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 (a write operation with no output schema) and lack of annotations, the description is insufficiently complete. It doesn't explain what 'browser group' means in this context, what the creation entails, or what to expect upon success/failure. For a mutation tool with no structured output information, more context is needed.

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%, with both parameters ('groupName' and 'remark') clearly documented in the schema. The description adds no additional parameter information beyond what's in the schema, so it meets the baseline of 3 where the schema does the heavy lifting but doesn't compensate with extra context.

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

Purpose4/5

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

The description 'Create a browser group' clearly states the action (create) and resource (browser group), making the purpose immediately understandable. However, it doesn't differentiate this tool from sibling tools like 'update-group' or 'get-group-list', which would require mentioning it's specifically for initial creation rather than modification or retrieval.

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?

The description provides no guidance on when to use this tool versus alternatives like 'update-group' or 'get-group-list'. It doesn't mention prerequisites (e.g., whether a browser must be connected first) or exclusions, leaving the agent to infer usage context from the tool name alone.

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