Skip to main content
Glama

独行录 / opcmenu

批量改线索

update_broker_lead
Idempotent

【需要登录】给一批线索打同一个 patch(补标签、补「在找什么」、批量归档)。逐条执行逐条回结果,单条失败不中断整批——批量清洗正是这条的全部意义。 【组合链】list_broker_leads(q=…) 挑出要清洗的 → update_broker_lead(leadIds, patch) → scan_broker_matches。 【口径】① patch.archived=true 是归档不是删除:记录与归因凭据都留着,也是撞线索池上限时腾额度的正路。② ⚠ patch 里带 phone 会让这条线索当场绑上一个站内用户,归因先到先得且不可撤——改手机号之前把改前改后念给用户确认。③ 只传想改的字段,不传的保持原值。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patchYes对这批线索统一应用的改动
leadIdsYes要改的线索 id,最多 50 条

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

Annotations already say read-only=false and destructive=false, but the description adds critical non-obvious behavior: it executes per lead and returns per-lead results, single failures do not abort the batch, and archived is archival rather than destructive. It also warns that including phone immediately binds the lead to a site user with irreversible first-come-first-served attribution, which is exactly the kind of behavioral context an agent needs.

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 structured into three focused sections: login requirement and batch behavior, the intended tool chain, and the caveats. Every sentence adds operational value, with the most important warnings clearly marked with ⚠.

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

Completeness5/5

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

For a two-parameter batch mutation tool with no output schema, the description covers auth, batching semantics, error behavior, patch semantics, side effects, and the recommended pipeline. The only thing not detailed is the exact result payload shape, but the description already states results are returned per lead and no output schema exists to specify further.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema has 100% coverage, the description enriches the patch parameter substantially: it is one uniform patch applied to a batch, omitted fields keep their original values, archived=true is an archive operation, and phone has a dangerous binding side effect. This goes well beyond the raw JSON Schema property definitions.

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 opens with a specific action—'给一批线索打同一个 patch'—and names representative uses (补标签、补「在找什么」、批量归档) that map directly to patch fields tags, wants, and archived. This clearly distinguishes it from siblings like create_broker_lead, delete_broker_lead, and scan_broker_matches.

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?

It gives an explicit combination chain: list_broker_leads(q=…) to select leads → update_broker_lead(leadIds, patch) → scan_broker_matches, plus a clear intended-use statement that batch cleaning is the whole point. It also explicitly contrasts archived=true with deletion, telling agents when this tool is the right path for freeing quota.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources