Skip to main content
Glama

1ClickSiteAI

Change one business of a batch

update_lead_gen_site
DestructiveIdempotent

Changes one business of a batch: its name, phone, email, address, logo, colour, or background. To change the defaults of the whole batch, use update_lead_gen_batch. Send only the fields to change; an empty string clears one, except the name. It works in a draft batch and on a live mini-site, and the logo changes only in a draft. It returns the business inside <lead_rows> and costs nothing. The first call writes nothing and returns each field's current value and its new one inside <lead_rows>; show that list to your user and call again with the same arguments and confirm: true only after they agree.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "batchId": "<batchId>",
      "itemId": "<itemId>"
    },
    "name": "update_lead_gen_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNo
phoneNo
itemIdYesBusiness id from get_lead_gen_batch.
addressNo
batchIdYesBatch id from create_lead_gen_batch or list_lead_gen_batches.
confirmNoSet true only after your user approved the list from your previous call to this tool. Never set it on the first call.
logoUrlNoDraft batches only.
businessNameNo
primaryColorNo
backgroundThemeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds context the annotations cannot: partial-write semantics (empty string clears, except the name), environment scope (draft batches and live mini-sites), the draft-only restriction on logos, and that the call is free. Crucially it discloses the dry-run first-call behavior — nothing is written and a before/after field list is returned in <lead_rows> — which is essential for an agent to avoid an unintended destructive mutation.

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?

Purpose, sibling alternative, field semantics, environment scope, return location, and cost all appear before the longer confirmation instructions, so the important routing information is front-loaded. The final sentence is a long run-on that chains dry-run behavior, output, and the approval loop together, and would read better split.

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?

For a 10-parameter mutation with no output schema, the description covers what an agent needs: which fields mutate, how to clear them, where the result appears (<lead_rows>), credit cost, and the mandatory confirmation cycle. What it omits is failure behavior — invalid colour format, a logo sent against a live mini-site, or an unknown itemId — so the agent has no stated recovery path.

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

Parameters4/5

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

With only 40% schema description coverage, the description does real work: it defines the empty-string clearing convention and its businessName exception, and explains that only changed fields should be supplied. The confirm parameter's gating is restated and reinforced beyond the schema's own text. It adds nothing for primaryColor's pattern or backgroundTheme's enum, but those are already fully specified in the schema.

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?

"Changes one business of a batch: its name, phone, email, address, logo, colour, or background" gives a specific verb, a precise resource (one business, not the batch), and enumerates the mutable fields. It explicitly contrasts with update_lead_gen_batch, so the agent can separate the two without opening either schema.

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 names the alternative and the condition that selects it ("To change the defaults of the whole batch, use update_lead_gen_batch"), states the patch convention ("Send only the fields to change"), and gives the clearing rule with its exception. The two-call approval protocol is spelled out with the exact trigger for confirm: true.

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