Skip to main content
Glama

批量设置子账号流量上限

sub_account_set_limit_flow_batch

Apply data caps to multiple residential proxy sub-accounts at once, setting each sub-account's monthly, weekly, or custom-cycle traffic limit in GB, with an option to remove existing limits.

Instructions

批量设置多个动态住宅子账号在同一周期内各自的流量上限;同一个子账号只允许设置一个周期。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cycleYes限制周期:0=每天,1=每周,2=每月,3=每季度,4=每年,5=永久(按累计用量,不清零)
productYes产品:dynamic-no-expiry=动态住宅流量(永久),dynamic-monthly=动态住宅流量(期限)
accountsYes子账号配置列表,每项写子账号 id(account)和上限流量 GB(limit_flow)
confirm_tokenNo确认码。客户端不支持弹窗确认时,第一次调用只返回操作预览和确认码;把预览告诉用户并得到同意后,用相同参数带上确认码再调一次。支持弹窗确认的客户端不需要这个参数

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true, so the safety profile is covered. The description adds the constraint that one account can only have one cycle set, which is useful behavioral context. However, it does not disclose what happens on partial failure, whether existing limits are overwritten, or how the confirm_token two-call flow behaves beyond the parameter description.

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

Conciseness4/5

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

The description is a single, front-loaded sentence that states the action, scope, and a key constraint. It is concise and readable, though it could be slightly more structured by separating the constraint into its own sentence.

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

Completeness3/5

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

For a batch mutation tool with no output schema, the description plus schema covers the core inputs well. However, it lacks guidance on the confirm_token two-step confirmation flow in the main description, and does not explain failure semantics or whether the operation is atomic. Given the tool's complexity (batch, confirmation token, multiple enums), a bit more context would be needed for full completeness.

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 parameters thoroughly, including enums and the meaning of limit_flow=0. The description adds the batch-level constraint ('同一个子账号只允许设置一个周期') but does not add much beyond the schema. Baseline 3 is appropriate.

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 states a specific verb ('批量设置' = batch set) and resource ('多个动态住宅子账号...流量上限'), and adds a key constraint ('同一个子账号只允许设置一个周期'). It is clear enough to distinguish from the single-account sibling sub_account_set_limit_flow, though it does not explicitly name that sibling.

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

Usage Guidelines3/5

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

The description implies batch usage and the one-cycle-per-account constraint, but it does not explicitly state when to prefer this tool over sub_account_limit_flow_batch or sub_account_set_limit_flow, nor does it mention the confirm_token flow as a usage condition. The confirm_token parameter description provides some usage guidance, but the main description lacks explicit when-to-use/alternatives guidance.

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