Skip to main content
Glama

批量改子账号密码

sub_account_set_password_batch

Batch update passwords for multiple proxy sub-accounts. Use after custom credentials are set; specify product, sub-account IDs, and new alphanumeric passwords (8-30 characters).

Instructions

批量修改时长类子账号的密码,只改密码不改用户名;密码只能是字母和数字,长度 8 到 30。前提是子账号已设置过自定义用户名和密码,系统默认的账密不能用它改,要先用 sub_account_set_credentials 设置。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes要修改的子账号列表,每项写子账号 id 与新密码
productYes产品:static-standard=静态住宅(非原生),static-native=静态住宅(原生),static-isp-native=静态住宅(运营商原生),datacenter=数据中心
confirm_tokenNo确认码。客户端不支持弹窗确认时,第一次调用只返回操作预览和确认码;把预览告诉用户并得到同意后,用相同参数带上确认码再调一次。支持弹窗确认的客户端不需要这个参数

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only state readOnlyHint=false, idempotentHint=false, and destructiveHint=false. The description adds useful behavioral context beyond those hints: it does not modify usernames, only supports letter/digit passwords of length 8–30, and rejects system-default credentials. This meaningfully clarifies operational constraints, though it does not cover result or confirmation behavior.

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 two concise sentences with no filler. It front-loads the main purpose, immediately states constraints, and then gives the prerequisite and alternative tool. Every sentence earns its place.

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

Completeness4/5

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

The description provides the core information needed for invocation: target scope, required constraints, and the prerequisite credential setup. The confirm_token flow is left to the schema, where it is fully explained. Without an output schema, a brief note on result/preview behavior could help, but this is a minor gap rather than a blocking omission.

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 baseline is 3. The description's password rule ('密码只能是字母和数字,长度 8 到 30') duplicates the customPassword schema description, and '只改密码不改用户名' is effect clarification rather than new parameter semantics. No substantial parameter meaning beyond the schema is added.

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

Purpose5/5

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

The description states a specific verb and resource: '批量修改时长类子账号的密码' (batch modify passwords of duration-type sub-accounts), and explicitly scopes the operation with '只改密码不改用户名' (only change password, not username). It distinguishes itself from the sibling sub_account_set_credentials by naming it as the prerequisite tool.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance and an exclusion: it can only change passwords when custom username/password already exist, and '系统默认的账密不能用它改' (default credentials cannot be changed with it), directing the agent to use sub_account_set_credentials first. This clearly separates the tool from the setup flow.

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