Skip to main content
Glama

设置子账号流量上限

sub_account_set_limit_flow

Set a periodic traffic cap for a residential proxy sub-account. When usage reaches the limit, the connection disconnects, then resets automatically for the next cycle.

Instructions

设置动态住宅某个子账号在一个周期内的流量上限,达到上限断开连接,下个周期恢复;同一个子账号只允许设置一个周期。

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only indicate that the operation is not read-only and is not idempotent. The description adds meaningful behavioral context: reaching the limit disconnects the connection, the limit resets next cycle, and only one cycle can be set per sub-account. It stops short of describing the preview/confirm behavior, which is left to the schema.

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, focused sentence that front-loads the core operation and then adds the key behavioral constraints. Every clause earns its place and there is no filler.

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?

Given that the schema fully documents all parameters, including the confirm_token preview flow, the description provides the missing operational context: disconnection on limit and per-cycle uniqueness. The main gap is sibling routing, which prevents a perfect score.

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 description is not required to restate parameter meanings. It adds no extra meaning beyond the schema, which is acceptable but not exceptional.

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 clearly states the tool sets a traffic limit for a dynamic-residential sub-account within a cycle, and describes the limit enforcement and reset behavior. It is clear about the single-account scope, though it does not explicitly differentiate itself from sibling tools like sub_account_set_limit_flow_batch.

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 gives no guidance on when to use this tool versus its siblings, such as the batch variant or the read-only sub_account_limit_flow. It also does not mention the confirmation-token flow or when limit_flow=0 should be used to remove a limit.

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